##// 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 import time, os, threading, sys, types, imp, inspect, traceback, atexit
104 import time, os, threading, sys, types, imp, inspect, traceback, atexit
105 import weakref
105 import weakref
106 try:
107 reload
108 except NameError:
109 from imp import reload
106
110
107 def _get_compiled_ext():
111 def _get_compiled_ext():
108 """Official way to get the extension of compiled files (.pyc or .pyo)"""
112 """Official way to get the extension of compiled files (.pyc or .pyo)"""
@@ -66,7 +66,7 b' def find_cmd(cmd):'
66 except OSError:
66 except OSError:
67 raise FindCmdError('command could not be found: %s' % cmd)
67 raise FindCmdError('command could not be found: %s' % cmd)
68 # which returns empty if not found
68 # which returns empty if not found
69 if path == b'':
69 if path == '':
70 raise FindCmdError('command could not be found: %s' % cmd)
70 raise FindCmdError('command could not be found: %s' % cmd)
71 return os.path.abspath(path)
71 return os.path.abspath(path)
72
72
@@ -37,7 +37,7 b' def test_find_cmd_python():'
37 def test_find_cmd_ls():
37 def test_find_cmd_ls():
38 """Make sure we can find the full path to ls."""
38 """Make sure we can find the full path to ls."""
39 path = find_cmd('ls')
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 def has_pywin32():
43 def has_pywin32():
General Comments 0
You need to be logged in to leave comments. Login now