summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-05-21 12:15:21 +0200
committerStephen Finucane <stephenfinucane@hotmail.com>2022-05-22 10:08:17 +0100
commitf50d2207b14c961c867a8c02225e724110f3be2b (patch)
treecf13ebbd8a6af3a501f7952867c7b8500309a518
parent4a30fe9c8f81ab6d1133055b3c1830e4d86c8518 (diff)
downloadfixtures-git-f50d2207b14c961c867a8c02225e724110f3be2b.tar.gz
Update classmethod expectations (again) for Python 3.11
It seems that the classmethod behavior in Python 3.11.0b1 is back to the one found in Python 3.8. Adjust the test expectations again. This time around, we expect the "old-new" behavior in CPython 3.9 and 3.10 only.
-rw-r--r--fixtures/tests/_fixtures/test_monkeypatch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fixtures/tests/_fixtures/test_monkeypatch.py b/fixtures/tests/_fixtures/test_monkeypatch.py
index 08cd1c8..fa08b24 100644
--- a/fixtures/tests/_fixtures/test_monkeypatch.py
+++ b/fixtures/tests/_fixtures/test_monkeypatch.py
@@ -24,7 +24,8 @@ from fixtures import MonkeyPatch, TestWithFixtures
reference = 23
NEW_PY39_CLASSMETHOD = (
- sys.version_info >= (3, 9) and not hasattr(sys, "pypy_version_info"))
+ sys.version_info[:2] in ((3, 9), (3,10))
+ and not hasattr(sys, "pypy_version_info"))
class C(object):
def foo(self, arg):