From a4681f6962ea137db3eec059fb453929eb998fec Mon Sep 17 00:00:00 2001 From: Zac Hatfield-Dodds Date: Sat, 7 May 2022 23:45:33 -0600 Subject: [PATCH] Tests work on 3.11.0b1 Thanks to CPython upstream fixes, these tests should now just work --- hypothesis-python/tests/conftest.py | 5 ----- hypothesis-python/tests/cover/test_lookup_py37.py | 4 ---- 2 files changed, 9 deletions(-) diff --git a/hypothesis-python/tests/conftest.py b/hypothesis-python/tests/conftest.py index 988efaf70c..bcbd024903 100644 --- a/hypothesis-python/tests/conftest.py +++ b/hypothesis-python/tests/conftest.py @@ -37,11 +37,6 @@ if sys.version_info >= (3, 11): collect_ignore_glob.append("cover/test_asyncio.py") # @asyncio.coroutine removed - assert sys.version_info.releaselevel == "alpha" - # TODO: our traceback elision doesn't work with Python 3.11's nice new format yet - collect_ignore_glob.append("cover/test_traceback_elision.py") - collect_ignore_glob.append("pytest/test_capture.py") - def pytest_configure(config): config.addinivalue_line("markers", "slow: pandas expects this marker to exist.") diff --git a/hypothesis-python/tests/cover/test_lookup_py37.py b/hypothesis-python/tests/cover/test_lookup_py37.py index bdfbbecd9e..6a1955eb6b 100644 --- a/hypothesis-python/tests/cover/test_lookup_py37.py +++ b/hypothesis-python/tests/cover/test_lookup_py37.py @@ -163,10 +163,6 @@ def test_resolving_standard_callable_ellipsis(x: collections.abc.Callable[..., E assert isinstance(x(1, 2, 3, a=4, b=5, c=6), Elem) -@pytest.mark.skipif( - sys.version_info[:3] == (3, 11, 0), - reason="https://github.com/python/cpython/issues/91621", -) @given(...) def test_resolving_standard_callable_no_args(x: collections.abc.Callable[[], Elem]): assert isinstance(x, collections.abc.Callable)