diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index 65cbf5fcf91d20..ca14f0fd05869e 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -45,12 +45,12 @@ class TestSeriesConstructors: (lambda: Series({}), True), (lambda: Series(()), False), # creates a RangeIndex (lambda: Series([]), False), # creates a RangeIndex - (lambda: Series((x for x in [])), False), # creates a RangeIndex + (lambda: Series((_ for _ in [])), False), # creates a RangeIndex (lambda: Series(data=None), True), (lambda: Series(data={}), True), (lambda: Series(data=()), False), # creates a RangeIndex (lambda: Series(data=[]), False), # creates a RangeIndex - (lambda: Series(data=(x for x in [])), False), # creates a RangeIndex + (lambda: Series(data=(_ for _ in [])), False), # creates a RangeIndex ], ) def test_empty_constructor(self, constructor, check_index_type): diff --git a/setup.cfg b/setup.cfg index 199ad346260117..f32deff9dafb86 100644 --- a/setup.cfg +++ b/setup.cfg @@ -187,9 +187,6 @@ ignore_errors=True [mypy-pandas.tests.indexing.test_loc] ignore_errors=True -[mypy-pandas.tests.series.test_constructors] -ignore_errors=True - [mypy-pandas.tests.series.test_operators] ignore_errors=True