summaryrefslogtreecommitdiff
path: root/numpy/testing/nosetester.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-13 09:05:31 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-04-13 09:05:31 -0600
commit68338eed3ae91c9846142e088c16b63635e58178 (patch)
treeadaec2f35174f838edbc932921eccac10c7c3886 /numpy/testing/nosetester.py
parent688bc60658b391524c6b641e0a5e5ecd73322d02 (diff)
downloadnumpy-68338eed3ae91c9846142e088c16b63635e58178.tar.gz
2to3: Apply basestring fixer.
The basestring class is not defined in Python 3 and the fixer replaces it with str. In order to have a common code base we define basestring in numpy/compat/py3k.py to be str when the Python version is >= 3, otherwise basestring and import it where needed. That works for most cases, but there are a few files where the version dependent define needs to be in the file. Closes #3042.
Diffstat (limited to 'numpy/testing/nosetester.py')
-rw-r--r--numpy/testing/nosetester.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index a7354b794..d07a5ad0b 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -10,6 +10,7 @@ import os
import sys
import warnings
import numpy.testing.utils
+from numpy.compat import basestring
def get_package_name(filepath):
"""