[pypy-svn] r18547 - pypy/dist/pypy/interpreter/pyparser/test
adim at codespeak.net
adim at codespeak.net
Fri Oct 14 16:20:13 CEST 2005
Author: adim
Date: Fri Oct 14 16:20:11 2005
New Revision: 18547
Modified:
pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py
pypy/dist/pypy/interpreter/pyparser/test/test_astcompiler.py
Log:
(arre, adim) test astcompiler against all CPython's stdlib
Modified: pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py (original)
+++ pypy/dist/pypy/interpreter/pyparser/test/test_astbuilder.py Fri Oct 14 16:20:11 2005
@@ -715,10 +715,8 @@
filepath = os.path.join(STDLIB_PATH, basename)
size = os.stat(filepath)[6]
# filter on size
- if size <= 10000:
- print "TESTING", filepath
- source = file(filepath).read()
- yield check_expression, source, 'exec'
+ source = file(filepath).read()
+ yield check_expression, source, 'exec'
def test_eval_string():
Modified: pypy/dist/pypy/interpreter/pyparser/test/test_astcompiler.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/test/test_astcompiler.py (original)
+++ pypy/dist/pypy/interpreter/pyparser/test/test_astcompiler.py Fri Oct 14 16:20:11 2005
@@ -204,6 +204,19 @@
source = file(filepath).read()
yield check_compile, source, 'exec'
+STDLIB_PATH = os.path.dirname(os.__file__)
+def test_on_stdlib():
+ py.test.skip('too ambitious for now (and time consuming)')
+ for basename in os.listdir(STDLIB_PATH):
+ if not basename.endswith('.py'):
+ continue
+ filepath = os.path.join(STDLIB_PATH, basename)
+ # size = os.stat(filepath)[6]
+ # filter on size
+ # if size <= 10000:
+ source = file(filepath).read()
+ yield check_compile, source, 'exec'
+
def test_libstuff():
for snippet_name in LIBSTUFF:
filepath = os.path.join(os.path.dirname(__file__), '../../../lib', snippet_name)
More information about the Pypy-commit
mailing list