Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 571e85e

Browse files
committed
fix test for pyc file modules
1 parent 0fbbb0c commit 571e85e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

IPython/utils/tests/test_module_paths.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def test_find_mod_4():
105105
nt.assert_equal(mp.find_mod("pack"), modpath)
106106

107107
def test_find_mod_5():
108-
nt.assert_is_none(mp.find_mod("packpyc"))
108+
modpath = join(TMP_TEST_DIR, "packpyc.pyc")
109+
nt.assert_equal(mp.find_mod("packpyc"), modpath)
109110

110111
def test_find_module_1():
111112
modpath = join(TMP_TEST_DIR, "xmod")

0 commit comments

Comments
 (0)