[pypy-svn] r50467 - pypy/dist/pypy/interpreter/pyparser/test
exarkun at codespeak.net
exarkun at codespeak.net
Wed Jan 9 20:05:54 CET 2008
Author: exarkun
Date: Wed Jan 9 20:05:50 2008
New Revision: 50467
Modified:
pypy/dist/pypy/interpreter/pyparser/test/test_samples.py
Log:
Skip some parsing tests by using the py.test skip API, rather than writing to stdout and not yielding the test from the test generator
Modified: pypy/dist/pypy/interpreter/pyparser/test/test_samples.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/test/test_samples.py (original)
+++ pypy/dist/pypy/interpreter/pyparser/test/test_samples.py Wed Jan 9 20:05:50 2008
@@ -79,7 +79,8 @@
if fname in SKIP_ALWAYS:
continue
if GRAMMAR_MISMATCH and fname in SKIP_IF_NOT_NATIVE:
- print "Skipping", fname
+ yield lambda: py.test.skip(
+ "Grammar mismatch and %s is not native" % (fname,))
continue
abspath = osp.join(samples_dir, fname)
yield check_parse, abspath
More information about the Pypy-commit
mailing list