Skip to content

Commit cfc2ef7

Browse files
ignore_errors tests.scalar.period.test_period
1 parent fd68269 commit cfc2ef7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/tests/scalar/period/test_period.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,10 @@ def test_period_immutable():
15571557

15581558

15591559
@pytest.mark.xfail(
1560-
StrictVersion(dateutil.__version__.split(".dev")[0]) < StrictVersion("2.7.0"),
1560+
# https://github.com/python/typeshed/tree/master/third_party/2and3/dateutil
1561+
# error: Module has no attribute "__version__" [attr-defined]
1562+
StrictVersion(dateutil.__version__.split(".dev")[0]) # type: ignore
1563+
< StrictVersion("2.7.0"),
15611564
reason="Bug in dateutil < 2.7.0 when parsing old dates: Period('0001-01-07', 'D')",
15621565
strict=False,
15631566
)

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ ignore_errors=True
185185
[mypy-pandas.tests.indexes.test_base]
186186
ignore_errors=True
187187

188-
[mypy-pandas.tests.scalar.period.test_period]
189-
ignore_errors=True
190-
191188
[mypy-pandas.tests.series.test_operators]
192189
ignore_errors=True
193190

0 commit comments

Comments
 (0)