We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 33f238f + 56346cf commit 600a9e3Copy full SHA for 600a9e3
pandas/tests/test_categorical.py
@@ -86,7 +86,11 @@ def test_constructor_unsortable(self):
86
self.assertFalse(factor.ordered)
87
88
# this however will raise as cannot be sorted
89
- self.assertRaises(TypeError, lambda : Categorical.from_array(arr, ordered=True))
+ # but fixed in newer versions of numpy
90
+ if LooseVersion(np.__version__) < "1.10":
91
+ self.assertRaises(TypeError, lambda : Categorical.from_array(arr, ordered=True))
92
+ else:
93
+ Categorical.from_array(arr, ordered=True)
94
95
def test_constructor(self):
96
0 commit comments