[pypy-commit] pypy py3k: be a bit less strict in what to expect in the output. E.g., I get some more [platform:execute] lines after the tb

antocuni noreply at buildbot.pypy.org
Fri Feb 24 10:30:53 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52838:7520b36b4010
Date: 2012-02-24 10:30 +0100
http://bitbucket.org/pypy/pypy/changeset/7520b36b4010/

Log:	be a bit less strict in what to expect in the output. E.g., I get
	some more [platform:execute] lines after the tb

diff --git a/pypy/interpreter/test/test_zpy.py b/pypy/interpreter/test/test_zpy.py
--- a/pypy/interpreter/test/test_zpy.py
+++ b/pypy/interpreter/test/test_zpy.py
@@ -101,7 +101,7 @@
     tmpfile.write(TB_NORMALIZATION_CHK)
     tmpfile.close()
 
-    popen = subprocess.Popen([sys.executable, str(pypypath), tmpfilepath],
+    popen = subprocess.Popen([sys.executable, str(pypypath), '-S', tmpfilepath],
                              stderr=subprocess.PIPE)
     _, stderr = popen.communicate()
-    assert stderr.endswith('KeyError: <normalized>\n')
+    assert 'KeyError: <normalized>\n' in stderr


More information about the pypy-commit mailing list