diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:12:14 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:12:14 +0000 |
commit | f8401465c6b5876c57d3908e38ca37c39695033f (patch) | |
tree | b36ea3e97bd1d54b4814c3e726854fcd689c3157 | |
parent | 97b333c573bbbe62e761f9880ed227802a791525 (diff) | |
download | numpy-f8401465c6b5876c57d3908e38ca37c39695033f.tar.gz |
3K: core: use BytesIO instead of StringIO in test_regressions on Py3
-rw-r--r-- | numpy/core/tests/test_regression.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index fdcde79ba..f93784c52 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -9,6 +9,10 @@ from numpy.testing.utils import _assert_valid_refcount 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): |