##// END OF EJS Templates
Merge pull request #11499 from chbrown/patch-1...
Matthias Bussonnier -
r24839:5e7f930d merge
parent child Browse files
Show More
@@ -64,7 +64,7 b' def find_mod(module_name):'
64 return None
64 return None
65 else:
65 else:
66 split_path = module_path.split(".")
66 split_path = module_path.split(".")
67 if split_path[1] in ["py", "pyw"]:
67 if split_path[-1] in ["py", "pyw"]:
68 return module_path
68 return module_path
69 else:
69 else:
70 return None
70 return None
@@ -28,7 +28,8 b' import nose.tools as nt'
28
28
29 env = os.environ
29 env = os.environ
30 TEST_FILE_PATH = split(abspath(__file__))[0]
30 TEST_FILE_PATH = split(abspath(__file__))[0]
31 TMP_TEST_DIR = tempfile.mkdtemp()
31
32 TMP_TEST_DIR = tempfile.mkdtemp(suffix='with.dot')
32 #
33 #
33 # Setup/teardown functions/decorators
34 # Setup/teardown functions/decorators
34 #
35 #
@@ -66,6 +67,13 b' def teardown():'
66 shutil.rmtree(TMP_TEST_DIR)
67 shutil.rmtree(TMP_TEST_DIR)
67 sys.path = old_syspath
68 sys.path = old_syspath
68
69
70 def test_tempdir():
71 """
72 Ensure the test are done with a temporary file that have a dot somewhere.
73 """
74 nt.assert_in('.',TMP_TEST_DIR)
75
76
69 def test_find_mod_1():
77 def test_find_mod_1():
70 """
78 """
71 Search for a directory's file path.
79 Search for a directory's file path.
General Comments 0
You need to be logged in to leave comments. Login now