From 7218e1b46bceac05841e90472501742d905fb3fc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 12 Mar 2021 21:55:15 +0000 Subject: gentoo resync : 12.03.2021 --- ...el-yaml-0.16.13-pypy3_collection_deprecation.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch (limited to 'dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch') diff --git a/dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch b/dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch new file mode 100644 index 000000000000..15d00625b68e --- /dev/null +++ b/dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch @@ -0,0 +1,19 @@ +This does not produce a deprecation warning under PyPy, even pypy3.7 +(last tested on 2021-03-12 using version 7.3.3-beta0). + +--- a/_test/test_deprecation.py ++++ b/_test/test_deprecation.py +@@ -2,11 +2,12 @@ + + from __future__ import print_function + ++import platform + import sys + import pytest # NOQA + + +-@pytest.mark.skipif(sys.version_info < (3, 7) or sys.version_info >= (3, 9), ++@pytest.mark.skipif(platform.python_implementation() == 'PyPy' or sys.version_info < (3, 7) or sys.version_info >= (3, 9), + reason='collections not available?') + def test_collections_deprecation(): + with pytest.warns(DeprecationWarning): -- cgit v1.2.3