diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-12 21:55:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-12 21:55:15 +0000 |
commit | 7218e1b46bceac05841e90472501742d905fb3fc (patch) | |
tree | 56fae051db521b8fce8014cbc8b11484885b14b3 /dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch | |
parent | 6d691ad5b6239929063441bbd14c489e92e7396e (diff) |
gentoo resync : 12.03.2021
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): |