Skip to content

Commit 3bf4dc6

Browse files
committed
TST: odd failure of reverse comparison with None on some platforms, xref #10835
1 parent 1cf18cd commit 3bf4dc6

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

pandas/tests/test_base.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,11 @@ def test_none_comparison(self):
295295
self.assertFalse(result.iat[0])
296296
self.assertFalse(result.iat[1])
297297

298-
if _np_version_under1p9:
299-
# fails as this tries not __eq__ which
300-
# is not valid for numpy
301-
pass
302-
else:
303-
result = None != o
304-
self.assertTrue(result.iat[0])
305-
self.assertTrue(result.iat[1])
298+
# this fails for numpy < 1.9
299+
# and oddly for *some* platforms
300+
#result = None != o
301+
#self.assertTrue(result.iat[0])
302+
#self.assertTrue(result.iat[1])
306303

307304
result = None > o
308305
self.assertFalse(result.iat[0])

0 commit comments

Comments
 (0)