From d0ee161b39c27efedd143b8757cae2f47e0b9083 Mon Sep 17 00:00:00 2001 From: Bart Broere Date: Sat, 3 Jun 2023 17:03:30 +0200 Subject: [PATCH] np.int is a deprecated copy of the built-in int --- .../_plotly_utils/tests/validators/test_integer_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py index 07f61155a56..8b7cb1dbf48 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py @@ -74,7 +74,7 @@ def test_acceptance_min(val, validator_min): assert validator_min.validate_coerce(val) == approx(val) -@pytest.mark.parametrize("val", [-2, -123, np.iinfo(np.int).min]) +@pytest.mark.parametrize("val", [-2, -123, np.iinfo(int).min]) def test_rejection_min(val, validator_min): with pytest.raises(ValueError) as validation_failure: validator_min.validate_coerce(val)