[Numpy-svn] r8161 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Sat Feb 20 12:12:14 CST 2010


Author: ptvirtan
Date: 2010-02-20 12:12:14 -0600 (Sat, 20 Feb 2010)
New Revision: 8161

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
3K: core: use BytesIO instead of StringIO in test_regressions on Py3

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2010-02-20 18:11:55 UTC (rev 8160)
+++ trunk/numpy/core/tests/test_regression.py	2010-02-20 18:12:14 UTC (rev 8161)
@@ -9,6 +9,10 @@
 from numpy.compat import asbytes, asunicode
 import numpy as np
 
+if sys.version_info[0] >= 3:
+    import io
+    StringIO = io.BytesIO
+
 rlevel = 1
 
 class TestRegression(TestCase):



More information about the Numpy-svn mailing list