diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index e224c20ca84d3..c85f65cd62563 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -694,7 +694,7 @@ def test_constructor_invalid_coerce_ints_with_float_nan(self, any_int_dtype): msg = "cannot convert float NaN to integer" with pytest.raises(ValueError, match=msg): - pd.Series([1, 2, np.nan], dtype=any_int_dtype) + Series([1, 2, np.nan], dtype=any_int_dtype) def test_constructor_dtype_no_cast(self): # see gh-1572