From 422804c0513f88f8ff60ead2f3e16e0db36f0076 Mon Sep 17 00:00:00 2001 From: Stuart Berg Date: Wed, 14 Aug 2019 13:52:18 -0400 Subject: [PATCH] TST: Make an inconsistent xfail non-strict under Python 3.5 --- pandas/tests/series/test_analytics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py index 3a5a387b919be9..f84e2e994a6587 100644 --- a/pandas/tests/series/test_analytics.py +++ b/pandas/tests/series/test_analytics.py @@ -18,6 +18,7 @@ notna, ) from pandas.api.types import is_scalar +from pandas.compat import PY35 from pandas.core.index import MultiIndex from pandas.core.indexes.datetimes import Timestamp import pandas.util.testing as tm @@ -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), ), ], )