summaryrefslogtreecommitdiff
path: root/numpy/distutils/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-08 11:34:24 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-04-08 11:52:32 -0600
commit011f8a20044a3982b2441cb53876e9689a3f6d0c (patch)
treec84a165c4b3d10421744785ffe2803bc069b09ea /numpy/distutils/tests
parent01aa27a436476d87c4d986a80225d23179eebb44 (diff)
downloadnumpy-011f8a20044a3982b2441cb53876e9689a3f6d0c.tar.gz
2to3: Apply `repr` fixer.
This replaces python backtics with repr(...). The backtics were mostly used to generate strings for printing with a string format and it is tempting to replace `'%s' % repr(x)` with `'%r' % x`. That would work except where `x` happened to be a tuple or a dictionary but, because it would be significant work to guarantee that and because there are not many places where backtics are used, the safe path is to let the repr replacements stand. Closes #3083.
Diffstat (limited to 'numpy/distutils/tests')
-rw-r--r--numpy/distutils/tests/test_misc_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/tests/test_misc_util.py b/numpy/distutils/tests/test_misc_util.py
index fab00aaa3..69968f63f 100644
--- a/numpy/distutils/tests/test_misc_util.py
+++ b/numpy/distutils/tests/test_misc_util.py
@@ -50,9 +50,9 @@ class TestGpaths(TestCase):
def test_gpaths(self):
local_path = minrelpath(join(dirname(__file__),'..'))
ls = gpaths('command/*.py', local_path)
- assert_(join(local_path,'command','build_src.py') in ls,`ls`)
+ assert_(join(local_path,'command','build_src.py') in ls,repr(ls))
f = gpaths('system_info.py', local_path)
- assert_(join(local_path,'system_info.py')==f[0],`f`)
+ assert_(join(local_path,'system_info.py')==f[0],repr(f))
if __name__ == "__main__":