Skip to content

Commit 0b02e27

Browse files
committed
there are no differences now for PyPy and CPython - both take nan correctly into account
1 parent 9e62b83 commit 0b02e27

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

pandas/tests/indexes/multi/test_isin.py

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import numpy as np
22
import pytest
33

4-
from pandas.compat import PYPY
5-
64
from pandas import MultiIndex
75
import pandas._testing as tm
86

97

10-
@pytest.mark.skipif(not PYPY, reason="tuples cmp recursively on PyPy")
11-
def test_isin_nan_pypy():
8+
def test_isin_nan():
129
idx = MultiIndex.from_arrays([["foo", "bar"], [1.0, np.nan]])
1310
tm.assert_numpy_array_equal(idx.isin([("bar", np.nan)]), np.array([False, True]))
1411
tm.assert_numpy_array_equal(
@@ -31,15 +28,6 @@ def test_isin():
3128
assert result.dtype == np.bool_
3229

3330

34-
@pytest.mark.skipif(PYPY, reason="tuples cmp recursively on PyPy")
35-
def test_isin_nan_not_pypy():
36-
idx = MultiIndex.from_arrays([["foo", "bar"], [1.0, np.nan]])
37-
tm.assert_numpy_array_equal(idx.isin([("bar", np.nan)]), np.array([False, False]))
38-
tm.assert_numpy_array_equal(
39-
idx.isin([("bar", float("nan"))]), np.array([False, False])
40-
)
41-
42-
4331
def test_isin_level_kwarg():
4432
idx = MultiIndex.from_arrays([["qux", "baz", "foo", "bar"], np.arange(4)])
4533

0 commit comments

Comments
 (0)