|
9 | 9 | algos as libalgos,
|
10 | 10 | hashtable as ht,
|
11 | 11 | )
|
12 |
| -from pandas.compat import np_array_datetime64_compat |
| 12 | +from pandas.compat import ( |
| 13 | + PY310, |
| 14 | + np_array_datetime64_compat, |
| 15 | +) |
13 | 16 | import pandas.util._test_decorators as td
|
14 | 17 |
|
15 | 18 | from pandas.core.dtypes.common import (
|
@@ -783,6 +786,8 @@ def test_different_nans(self):
|
783 | 786 | expected = np.array([np.nan])
|
784 | 787 | tm.assert_numpy_array_equal(result, expected)
|
785 | 788 |
|
| 789 | + # Flaky on Python 3.10 -> Don't make strict |
| 790 | + @pytest.mark.xfail(PY310, reason="Failing on Python 3.10 GH41940", strict=False) |
786 | 791 | def test_first_nan_kept(self):
|
787 | 792 | # GH 22295
|
788 | 793 | # create different nans from bit-patterns:
|
@@ -988,6 +993,8 @@ def __hash__(self):
|
988 | 993 | # different objects -> False
|
989 | 994 | tm.assert_numpy_array_equal(algos.isin([a], [b]), np.array([False]))
|
990 | 995 |
|
| 996 | + # Flaky on Python 3.10 -> Don't make strict |
| 997 | + @pytest.mark.xfail(PY310, reason="Failing on Python 3.10 GH41940", strict=False) |
991 | 998 | def test_different_nans(self):
|
992 | 999 | # GH 22160
|
993 | 1000 | # all nans are handled as equivalent
|
@@ -1030,6 +1037,8 @@ def test_empty(self, empty):
|
1030 | 1037 | result = algos.isin(vals, empty)
|
1031 | 1038 | tm.assert_numpy_array_equal(expected, result)
|
1032 | 1039 |
|
| 1040 | + # Flaky on Python 3.10 -> Don't make strict |
| 1041 | + @pytest.mark.xfail(PY310, reason="Failing on Python 3.10 GH41940", strict=False) |
1033 | 1042 | def test_different_nan_objects(self):
|
1034 | 1043 | # GH 22119
|
1035 | 1044 | comps = np.array(["nan", np.nan * 1j, float("nan")], dtype=object)
|
|
0 commit comments