[pypy-svn] r61538 - pypy/trunk/lib-python/modified-2.5.2/test

antocuni at codespeak.net antocuni at codespeak.net
Tue Feb 3 17:48:03 CET 2009


Author: antocuni
Date: Tue Feb  3 17:48:01 2009
New Revision: 61538

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/test_generators.py
Log:
make this test passing both on cpython and pypy; some tests still fail on cpython, though :-(


Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_generators.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_generators.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_generators.py	Tue Feb  3 17:48:01 2009
@@ -1681,10 +1681,8 @@
 >>> g.next()
 >>> del g
 >>> import gc; _ = gc.collect()
->>> sys.stderr.getvalue().startswith(
-...     'Exception "RuntimeError: generator ignored GeneratorExit" in '
-... )
-True
+>>> print sys.stderr.getvalue()  # doctest: +ELLIPSIS
+Exception ...RuntimeError...generator ignored GeneratorExit...
 >>> sys.stderr = old
 
 



More information about the Pypy-commit mailing list