Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r61297:6c37adc8c491
Date: 2013-02-15 16:50 -0800
http://bitbucket.org/pypy/pypy/changeset/6c37adc8c491/

Log:    this isn't necessary

diff --git a/pypy/module/_cffi_backend/test/_backend_test_c.py 
b/pypy/module/_cffi_backend/test/_backend_test_c.py
--- a/pypy/module/_cffi_backend/test/_backend_test_c.py
+++ b/pypy/module/_cffi_backend/test/_backend_test_c.py
@@ -1148,7 +1148,7 @@
     orig_getline = linecache.getline
     try:
         linecache.getline = lambda *args: 'LINE'    # hack: speed up PyPy tests
-        sys.stderr = io.StringIO()
+        sys.stderr = cStringIO.StringIO()
         assert f(100) == 300
         assert sys.stderr.getvalue() == ''
         assert f(10000) == -42
@@ -1161,7 +1161,7 @@
     $
 ValueError: 42
 """)
-        sys.stderr = io.StringIO()
+        sys.stderr = cStringIO.StringIO()
         bigvalue = 20000
         assert f(bigvalue) == -42
         assert matches(sys.stderr.getvalue(), """\
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to