diff options
Diffstat (limited to 'dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch')
-rw-r--r-- | dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch | 19 |
1 files changed, 19 insertions, 0 deletions
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): |