From 430dfebfce675f0fb2ee8f626bd0a8f6149f24cd Mon Sep 17 00:00:00 2001 From: Jake Lishman Date: Fri, 22 Sep 2023 18:14:41 +0100 Subject: [PATCH] Remove use of singleton aliases removed in Numpy 2 These are just straight aliases for `np.inf` and `np.nan`, and all aliases bar those two will be removed in Numpy 2. --- test/python/circuit/test_parameters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")