[pypy-svn] r28996 - pypy/dist/pypy/module/__builtin__/test

arigo at codespeak.net arigo at codespeak.net
Tue Jun 20 15:16:32 CEST 2006


Author: arigo
Date: Tue Jun 20 15:16:31 2006
New Revision: 28996

Modified:
   pypy/dist/pypy/module/__builtin__/test/test_functional.py
Log:
Python 2.3 compatibility.


Modified: pypy/dist/pypy/module/__builtin__/test/test_functional.py
==============================================================================
--- pypy/dist/pypy/module/__builtin__/test/test_functional.py	(original)
+++ pypy/dist/pypy/module/__builtin__/test/test_functional.py	Tue Jun 20 15:16:31 2006
@@ -165,9 +165,9 @@
         raises(TypeError, all, [2, 4, 6], [])    # Too many args
         assert all([]) == True                   # Empty iterator
         S = [50, 60]
-        assert all(x > 42 for x in S) == True
+        assert all([x > 42 for x in S]) == True
         S = [50, 40, 60]
-        assert all(x > 42 for x in S) == False
+        assert all([x > 42 for x in S]) == False
 
     def test_any(self):
 
@@ -187,7 +187,7 @@
         raises(TypeError, any, [2, 4, 6], [])    # Too many args
         assert any([]) == False                  # Empty iterator
         S = [40, 60, 30]
-        assert any(x > 42 for x in S) == True
+        assert any([x > 42 for x in S]) == True
         S = [10, 20, 30]
-        assert any(x > 42 for x in S) == False
+        assert any([x > 42 for x in S]) == False
 



More information about the Pypy-commit mailing list