summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
authornjsmith <njs@pobox.com>2013-02-28 10:35:37 -0800
committernjsmith <njs@pobox.com>2013-02-28 10:35:37 -0800
commit2cb5021f2110f7e24a6a30a3a0af8336f46fb621 (patch)
treeeb7a8a5043ab20b1e15e92cea0c6c7ceb57c4eb9 /numpy/testing/numpytest.py
parentceca28d920225715870d0a83394385e320d1bb22 (diff)
parent2429298dd8ddf797c3c89e65eb8a9b9e8f72a299 (diff)
downloadnumpy-2cb5021f2110f7e24a6a30a3a0af8336f46fb621.tar.gz
Merge pull request #3049 from charris/2to3-exec
2to3: apply exec fixer results.
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r--numpy/testing/numpytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py
index f72626cf0..200c88b03 100644
--- a/numpy/testing/numpytest.py
+++ b/numpy/testing/numpytest.py
@@ -42,7 +42,7 @@ def importall(package):
continue
name = package_name+'.'+subpackage_name
try:
- exec 'import %s as m' % (name)
+ exec('import %s as m' % (name))
except Exception as msg:
print 'Failed importing %s: %s' %(name, msg)
continue