diff --git a/test/python/circuit/test_parameters.py b/test/python/circuit/test_parameters.py index 31b73c55afca..55910926801b 100644 --- a/test/python/circuit/test_parameters.py +++ b/test/python/circuit/test_parameters.py @@ -1492,7 +1492,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")