From b89e9b5537717005fe76cd520b436097e7f29610 Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Fri, 15 Apr 2022 20:26:39 -0700 Subject: [PATCH] Revert "skip parts of generic_alias test on PyPy3.9-v7.3.9" This reverts commit 0fea286c78cf2a40daa27112d2810966c85e8ae8. --- numpy/typing/tests/test_generic_alias.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/numpy/typing/tests/test_generic_alias.py b/numpy/typing/tests/test_generic_alias.py index e9a0a07ecdb5..52d3deae4ed2 100644 --- a/numpy/typing/tests/test_generic_alias.py +++ b/numpy/typing/tests/test_generic_alias.py @@ -17,10 +17,7 @@ DType = _GenericAlias(np.dtype, (ScalarType,)) NDArray = _GenericAlias(np.ndarray, (Any, DType)) -_SKIP_PYPY_39 = (sys.implementation.name == 'pypy' and - sys.implementation.version < (7, 3, 10)) - -if sys.version_info >= (3, 9) and not _SKIP_PYPY_39: +if sys.version_info >= (3, 9): DType_ref = types.GenericAlias(np.dtype, (ScalarType,)) NDArray_ref = types.GenericAlias(np.ndarray, (Any, DType_ref)) FuncType = Callable[[Union[_GenericAlias, types.GenericAlias]], Any] @@ -80,7 +77,7 @@ def test_pass(self, name: str, func: FuncType) -> None: """ value = func(NDArray) - if sys.version_info >= (3, 9) and not _SKIP_PYPY_39: + if sys.version_info >= (3, 9): value_ref = func(NDArray_ref) assert value == value_ref @@ -142,6 +139,6 @@ def test_raise( with pytest.raises(exc_type): func(NDArray) - if sys.version_info >= (3, 9) and not _SKIP_PYPY_39: + if sys.version_info >= (3, 9): with pytest.raises(exc_type): func(NDArray_ref)