diff options
| author | Sebastian Berg <sebastianb@nvidia.com> | 2023-03-14 17:13:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 17:13:05 +0100 |
| commit | a95741d546aad3dd024077e4fdfb147314514f48 (patch) | |
| tree | 85ce0ad117158f8712bc4aa25030f0c3586784b5 /numpy/core | |
| parent | 071388f957c13c1a4f03bc811e3d128335ac686e (diff) | |
| parent | e570c6f5ff6f5aa966193d51560d3cde30fc09bd (diff) | |
| download | numpy-a95741d546aad3dd024077e4fdfb147314514f48.tar.gz | |
Merge pull request #23384 from neutrinoceros/cleanup_py38
MAINT: cleanup unused Python3.8-only code and references
Diffstat (limited to 'numpy/core')
| -rw-r--r-- | numpy/core/tests/test_dtype.py | 8 | ||||
| -rw-r--r-- | numpy/core/tests/test_scalar_methods.py | 10 |
2 files changed, 0 insertions, 18 deletions
diff --git a/numpy/core/tests/test_dtype.py b/numpy/core/tests/test_dtype.py index 9b44367e6..f764a4daa 100644 --- a/numpy/core/tests/test_dtype.py +++ b/numpy/core/tests/test_dtype.py @@ -1833,7 +1833,6 @@ class TestUserDType: create_custom_field_dtype(blueprint, mytype, 2) -@pytest.mark.skipif(sys.version_info < (3, 9), reason="Requires python 3.9") class TestClassGetItem: def test_dtype(self) -> None: alias = np.dtype[Any] @@ -1866,10 +1865,3 @@ def test_result_type_integers_and_unitless_timedelta64(): td = np.timedelta64(4) result = np.result_type(0, td) assert_dtype_equal(result, td.dtype) - - -@pytest.mark.skipif(sys.version_info >= (3, 9), reason="Requires python 3.8") -def test_class_getitem_38() -> None: - match = "Type subscription requires python >= 3.9" - with pytest.raises(TypeError, match=match): - np.dtype[Any] diff --git a/numpy/core/tests/test_scalar_methods.py b/numpy/core/tests/test_scalar_methods.py index 4f57c94c0..18a7bc828 100644 --- a/numpy/core/tests/test_scalar_methods.py +++ b/numpy/core/tests/test_scalar_methods.py @@ -1,7 +1,6 @@ """ Test the scalar constructors, which also do type-coercion """ -import sys import fractions import platform import types @@ -134,7 +133,6 @@ class TestIsInteger: assert not value.is_integer() -@pytest.mark.skipif(sys.version_info < (3, 9), reason="Requires python 3.9") class TestClassGetItem: @pytest.mark.parametrize("cls", [ np.number, @@ -188,14 +186,6 @@ class TestClassGetItem: assert np.number[Any] -@pytest.mark.skipif(sys.version_info >= (3, 9), reason="Requires python 3.8") -@pytest.mark.parametrize("cls", [np.number, np.complexfloating, np.int64]) -def test_class_getitem_38(cls: Type[np.number]) -> None: - match = "Type subscription requires python >= 3.9" - with pytest.raises(TypeError, match=match): - cls[Any] - - class TestBitCount: # derived in part from the cpython test "test_bit_count" |
