diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py index 3a5a387b919be9..f82ccd943df630 100644 --- a/pandas/tests/series/test_analytics.py +++ b/pandas/tests/series/test_analytics.py @@ -5,6 +5,7 @@ from numpy import nan import pytest +from pandas.compat import PY35 import pandas.util._test_decorators as td import pandas as pd @@ -1489,7 +1490,8 @@ def test_value_counts_with_nan(self): "unicode_", "timedelta64[h]", pytest.param( - "datetime64[D]", marks=pytest.mark.xfail(reason="GH#7996", strict=True) + "datetime64[D]", + marks=pytest.mark.xfail(reason="GH#7996", strict=not PY35), ), ], )