Skip to content

Commit fd6dc8a

Browse files
Remove use of singleton aliases removed in Numpy 2 (#10891) (#10992)
These are just straight aliases for `np.inf` and `np.nan`, and all aliases bar those two will be removed in Numpy 2. (cherry picked from commit 6674133) Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
1 parent 7df8a11 commit fd6dc8a

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
@@ -1492,7 +1492,7 @@ def test_complex_angle_raises_when_not_supported(self):
14921492
def test_operating_on_a_parameter_with_a_non_float_will_raise(self):
14931493
"""Verify operations between a Parameter and a non-float will raise."""
14941494

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

14971497
x = Parameter("x")
14981498

0 commit comments

Comments
 (0)