Skip to content

Commit

Permalink
TST: odd failure of reverse comparison with None on some platforms, x…
Browse files Browse the repository at this point in the history
…ref #10835
  • Loading branch information
jreback committed Aug 22, 2015
1 parent 1cf18cd commit 3bf4dc6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pandas/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,11 @@ def test_none_comparison(self):
self.assertFalse(result.iat[0])
self.assertFalse(result.iat[1])

if _np_version_under1p9:
# fails as this tries not __eq__ which
# is not valid for numpy
pass
else:
result = None != o
self.assertTrue(result.iat[0])
self.assertTrue(result.iat[1])
# this fails for numpy < 1.9
# and oddly for *some* platforms
#result = None != o
#self.assertTrue(result.iat[0])
#self.assertTrue(result.iat[1])

result = None > o
self.assertFalse(result.iat[0])
Expand Down

0 comments on commit 3bf4dc6

Please sign in to comment.