Commit c02c3f36 authored by Stefan Behnel's avatar Stefan Behnel

Fix test in Py2.

parent 9bc7db3d
......@@ -9,7 +9,11 @@ from Cython.Build.Dependencies import cythonize
import sys
from distutils.core import setup
from io import StringIO
try:
# io.StringIO cannot handle 'str' in Py2
from StringIO import StringIO
except ImportError:
from io import StringIO
old_stderr = sys.stderr
captured = sys.stderr = StringIO()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment