Skip to content

Commit 6674133

Browse files
authored
Remove use of singleton aliases removed in Numpy 2 (#10891)
These are just straight aliases for `np.inf` and `np.nan`, and all aliases bar those two will be removed in Numpy 2.
1 parent 5f53e33 commit 6674133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/python/circuit/test_parameters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ def test_complex_angle_raises_when_not_supported(self):
15201520
def test_operating_on_a_parameter_with_a_non_float_will_raise(self):
15211521
"""Verify operations between a Parameter and a non-float will raise."""
15221522

1523-
bad_constants = ["1", numpy.Inf, numpy.NaN, None, {}, []]
1523+
bad_constants = ["1", numpy.inf, numpy.nan, None, {}, []]
15241524

15251525
x = Parameter("x")
15261526

0 commit comments

Comments
 (0)