Skip to content

Commit 92ddd5e

Browse files
committed
Review Edit
1 parent e822696 commit 92ddd5e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/test_sorting.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import numpy as np
88
from numpy import nan
99
from pandas.core import common as com
10-
from pandas import DataFrame, MultiIndex, merge, concat, Series, compat
10+
from pandas import (DataFrame, MultiIndex, merge, concat, Series, compat,
11+
_np_version_under1p10)
1112
from pandas.util import testing as tm
1213
from pandas.util.testing import assert_frame_equal, assert_series_equal
1314
from pandas.core.sorting import (is_int64_overflow_possible,
@@ -415,7 +416,7 @@ def test_mixed_integer_from_list(self):
415416
def test_unsortable(self):
416417
# GH 13714
417418
arr = np.array([1, 2, datetime.now(), 0, 3], dtype=object)
418-
if compat.PY2 and not compat.numpy._np_version_under1p10:
419+
if compat.PY2 and not _np_version_under1p10:
419420
# RuntimeWarning: tp_compare didn't return -1 or -2 for exception
420421
with warnings.catch_warnings():
421422
pytest.raises(TypeError, safe_sort, arr)

0 commit comments

Comments
 (0)