Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r73731:688d9d295fc2
Date: 2014-09-28 08:39 +0200
http://bitbucket.org/pypy/pypy/changeset/688d9d295fc2/

Log:    Oups, wrong test. Fix it and be more precise: check exactly each
        implementation.

diff --git a/lib-python/2.7/test/test_select.py 
b/lib-python/2.7/test/test_select.py
--- a/lib-python/2.7/test/test_select.py
+++ b/lib-python/2.7/test/test_select.py
@@ -62,7 +62,12 @@
         # removes an item and at the middle the iteration stops.
         # PyPy: 'a' ends up empty, because the iteration is done on
         # a copy of the original list: fileno() is called 10 times.
-        self.assert_(len(result[1]) <= 5)
+        if test_support.check_impl_detail(cpython=True):
+            self.assertEqual(len(result[1]), 5)
+            self.assertEqual(len(a), 5)
+        if test_support.check_impl_detail(pypy=True):
+            self.assertEqual(len(result[1]), 10)
+            self.assertEqual(len(a), 0)
 
 def test_main():
     test_support.run_unittest(SelectTestCase)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to