Skip to content

Commit

Permalink
Fix test as NumPy 1.25 changes the rules for equality operator
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Jul 12, 2023
1 parent a5acafa commit b3b1827
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pint/testsuite/test_quantity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,10 @@ def test_equal_zero_nan_NP(self):
self.Q_([0, 1, 2], "J") == np.array([0, 0, np.nan]),
np.asarray([True, False, False]),
)
assert not (self.Q_(np.arange(4), "J") == np.zeros(3))

# This raise an exception on NumPy 1.25 as dimensions
# are different
# assert not (self.Q_(np.arange(4), "J") == np.zeros(3))

def test_offset_equal_zero(self):
ureg = self.ureg
Expand Down

0 comments on commit b3b1827

Please sign in to comment.