diff options
author | Brigitta Sipőcz <bsipocz@gmail.com> | 2022-05-20 18:34:06 -0700 |
---|---|---|
committer | Brigitta Sipőcz <bsipocz@gmail.com> | 2022-05-23 09:29:59 -0700 |
commit | d4d5771e17c14ce8cdeaf2922d537006dd3fcebf (patch) | |
tree | 0e46316f3143350dd14602ebea42f06a4c5864c1 /numpy/typing | |
parent | 53379cd353fb7ab5840c3ee370c735fe61d6419c (diff) | |
download | numpy-d4d5771e17c14ce8cdeaf2922d537006dd3fcebf.tar.gz |
MAINT: Python <3.8 related cleanups
Diffstat (limited to 'numpy/typing')
-rw-r--r-- | numpy/typing/tests/data/pass/array_constructors.py | 5 | ||||
-rw-r--r-- | numpy/typing/tests/data/pass/scalars.py | 7 |
2 files changed, 5 insertions, 7 deletions
diff --git a/numpy/typing/tests/data/pass/array_constructors.py b/numpy/typing/tests/data/pass/array_constructors.py index 2763d9c92..e035a73c6 100644 --- a/numpy/typing/tests/data/pass/array_constructors.py +++ b/numpy/typing/tests/data/pass/array_constructors.py @@ -23,9 +23,8 @@ B = A.view(SubClass).copy() B_stack = np.array([[1], [1]]).view(SubClass) C = [1] -if sys.version_info >= (3, 8): - np.ndarray(Index()) - np.ndarray([Index()]) +np.ndarray(Index()) +np.ndarray([Index()]) np.array(1, dtype=float) np.array(1, copy=False) diff --git a/numpy/typing/tests/data/pass/scalars.py b/numpy/typing/tests/data/pass/scalars.py index b258db49f..684d41fad 100644 --- a/numpy/typing/tests/data/pass/scalars.py +++ b/numpy/typing/tests/data/pass/scalars.py @@ -59,10 +59,9 @@ np.float64(None) np.float32("1") np.float16(b"2.5") -if sys.version_info >= (3, 8): - np.uint64(D()) - np.float32(D()) - np.complex64(D()) +np.uint64(D()) +np.float32(D()) +np.complex64(D()) np.bytes_(b"hello") np.bytes_("hello", 'utf-8') |