Skip to content

Commit e5bdf20

Browse files
committed
Remove test for numpy < 1.7
1 parent 305c062 commit e5bdf20

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/QuantSI/tests/test_units.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -944,16 +944,6 @@ def test_special_case_numpy_functions():
944944
with pytest.raises(TypeError):
945945
np.where(cond, ar1, ar1, ar2)
946946

947-
# Check setasflat (for numpy < 1.7)
948-
if hasattr(Quantity, "setasflat"):
949-
a = np.arange(10) * mV
950-
b = np.ones(10).reshape(5, 2) * volt
951-
c = np.ones(10).reshape(5, 2) * second
952-
with pytest.raises(DimensionMismatchError):
953-
a.setasflat(c)
954-
a.setasflat(b)
955-
assert_equal(a.flatten(), b.flatten())
956-
957947
# Check cumprod
958948
a = np.arange(1, 10) * mV / mV
959949
assert_equal(a.cumprod(), np.asarray(a).cumprod())

0 commit comments

Comments
 (0)