Skip to content

Commit c37724b

Browse files
committed
TST: invalid test for unsortable for > numpy 1.10, #11138
1 parent c65fd6d commit c37724b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/tests/test_categorical.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ def test_constructor_unsortable(self):
8787
self.assertFalse(factor.ordered)
8888

8989
# this however will raise as cannot be sorted
90-
# but fixed in newer versions of numpy
91-
if LooseVersion(np.__version__) < "1.10":
92-
self.assertRaises(TypeError, lambda : Categorical.from_array(arr, ordered=True))
93-
else:
94-
Categorical.from_array(arr, ordered=True)
90+
self.assertRaises(TypeError, lambda : Categorical.from_array(arr, ordered=True))
9591

9692
def test_is_equal_dtype(self):
9793

0 commit comments

Comments
 (0)