[pypy-svn] r67277 - pypy/trunk/pypy/interpreter/astcompiler/test
benjamin at codespeak.net
benjamin at codespeak.net
Fri Aug 28 15:16:56 CEST 2009
Author: benjamin
Date: Fri Aug 28 15:16:54 2009
New Revision: 67277
Modified:
pypy/trunk/pypy/interpreter/astcompiler/test/test_astbuilder.py
Log:
provide all() if it doesn't exist
Modified: pypy/trunk/pypy/interpreter/astcompiler/test/test_astbuilder.py
==============================================================================
--- pypy/trunk/pypy/interpreter/astcompiler/test/test_astbuilder.py (original)
+++ pypy/trunk/pypy/interpreter/astcompiler/test/test_astbuilder.py Fri Aug 28 15:16:54 2009
@@ -10,6 +10,16 @@
from pypy.interpreter.astcompiler import ast, consts
+try:
+ all
+except NameError:
+ def all(iterable):
+ for x in iterable:
+ if not x:
+ return False
+ return True
+
+
class TestAstBuilder:
def setup_class(cls):
More information about the Pypy-commit
mailing list