summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessia Marcolini <98marcolini@gmail.com>2021-10-08 09:53:30 +0000
committerGitHub <noreply@github.com>2021-10-08 09:53:30 +0000
commitfb6d3928c847058301ff2365fae90916e8850640 (patch)
tree1ccdc0445f573c97a66e6d50f6015d6af2fbb28f
parent4d23ebeb068c8d6ba6edfc11d32ab2af8bb89c74 (diff)
downloadnumpy-fb6d3928c847058301ff2365fae90916e8850640.tar.gz
MAINT: Remove duplicated tests
-rw-r--r--numpy/core/tests/test_numeric.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/numpy/core/tests/test_numeric.py b/numpy/core/tests/test_numeric.py
index 558ded01b..a98c7016a 100644
--- a/numpy/core/tests/test_numeric.py
+++ b/numpy/core/tests/test_numeric.py
@@ -932,25 +932,6 @@ class TestTypes:
# Promote with object:
assert_equal(promote_types('O', S+'30'), np.dtype('O'))
- @pytest.mark.parametrize(["dtype1", "dtype2"],
- [[np.dtype("V6"), np.dtype("V10")],
- [np.dtype([("name1", "i8")]), np.dtype([("name2", "i8")])],
- [np.dtype("i8,i8"), np.dtype("i4,i4")],
- ])
- def test_invalid_void_promotion(self, dtype1, dtype2):
- # Mainly test structured void promotion, which currently allows
- # byte-swapping, but nothing else:
- with pytest.raises(TypeError):
- np.promote_types(dtype1, dtype2)
-
- @pytest.mark.parametrize(["dtype1", "dtype2"],
- [[np.dtype("V10"), np.dtype("V10")],
- [np.dtype([("name1", "<i8")]), np.dtype([("name1", ">i8")])],
- [np.dtype("i8,i8"), np.dtype("i8,>i8")],
- ])
- def test_valid_void_promotion(self, dtype1, dtype2):
- assert np.promote_types(dtype1, dtype2) is dtype1
-
@pytest.mark.parametrize("dtype",
list(np.typecodes["All"]) +
["i,i", "S3", "S100", "U3", "U100", rational])