From dc69d50c49dc7ac7f8d10d7592c1dd1c730e7260 2018-11-19 19:58:23 From: Matthias Bussonnier Date: 2018-11-19 19:58:23 Subject: [PATCH] test with dot --- diff --git a/IPython/utils/tests/test_module_paths.py b/IPython/utils/tests/test_module_paths.py index b315c69..8456ee7 100644 --- a/IPython/utils/tests/test_module_paths.py +++ b/IPython/utils/tests/test_module_paths.py @@ -28,7 +28,8 @@ import nose.tools as nt env = os.environ TEST_FILE_PATH = split(abspath(__file__))[0] -TMP_TEST_DIR = tempfile.mkdtemp() + +TMP_TEST_DIR = tempfile.mkdtemp(suffix='with.dot') # # Setup/teardown functions/decorators # @@ -66,6 +67,13 @@ def teardown(): shutil.rmtree(TMP_TEST_DIR) sys.path = old_syspath +def test_tempdir(): + """ + Ensure the test are done with a temporary file that have a dot somewhere. + """ + nt.assert_in('.',TMP_TEST_DIR) + + def test_find_mod_1(): """ Search for a directory's file path.