##// END OF EJS Templates
Fix some more tests for Python 3.
Thomas Kluyver -
Show More
@@ -103,6 +103,10 b' skip_doctest = True'
103 103
104 104 import time, os, threading, sys, types, imp, inspect, traceback, atexit
105 105 import weakref
106 try:
107 reload
108 except NameError:
109 from imp import reload
106 110
107 111 def _get_compiled_ext():
108 112 """Official way to get the extension of compiled files (.pyc or .pyo)"""
@@ -66,7 +66,7 b' def find_cmd(cmd):'
66 66 except OSError:
67 67 raise FindCmdError('command could not be found: %s' % cmd)
68 68 # which returns empty if not found
69 if path == b'':
69 if path == '':
70 70 raise FindCmdError('command could not be found: %s' % cmd)
71 71 return os.path.abspath(path)
72 72
@@ -37,7 +37,7 b' def test_find_cmd_python():'
37 37 def test_find_cmd_ls():
38 38 """Make sure we can find the full path to ls."""
39 39 path = find_cmd('ls')
40 nt.assert_true(path.endswith(b'ls'))
40 nt.assert_true(path.endswith('ls'))
41 41
42 42
43 43 def has_pywin32():
General Comments 0
You need to be logged in to leave comments. Login now