Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r65011:c3ca88e6e231
Date: 2013-06-26 12:55 -0700
http://bitbucket.org/pypy/pypy/changeset/c3ca88e6e231/
Log: consider nan containment as an impl detail
diff --git a/lib-python/3/test/test_float.py b/lib-python/3/test/test_float.py
--- a/lib-python/3/test/test_float.py
+++ b/lib-python/3/test/test_float.py
@@ -170,7 +170,8 @@
def test_float_containment(self):
floats = (INF, -INF, 0.0, 1.0, NAN)
for f in floats:
- self.assertIn(f, [f])
+ if f is NAN and support.check_impl_detail(pypy=False):
+ self.assertIn(f, [f])
self.assertIn(f, (f,))
self.assertIn(f, {f})
self.assertIn(f, {f: None})
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit