diff --git a/test/python/circuit/test_parameters.py b/test/python/circuit/test_parameters.py index 9d14a4d766df..73f5ca245b6c 100644 --- a/test/python/circuit/test_parameters.py +++ b/test/python/circuit/test_parameters.py @@ -1520,7 +1520,7 @@ def test_complex_angle_raises_when_not_supported(self): def test_operating_on_a_parameter_with_a_non_float_will_raise(self): """Verify operations between a Parameter and a non-float will raise.""" - bad_constants = ["1", numpy.Inf, numpy.NaN, None, {}, []] + bad_constants = ["1", numpy.inf, numpy.nan, None, {}, []] x = Parameter("x")