diff --git a/pyutilib/misc/tests/test_import.py b/pyutilib/misc/tests/test_import.py index af523ad2..533bfccb 100644 --- a/pyutilib/misc/tests/test_import.py +++ b/pyutilib/misc/tests/test_import.py @@ -101,8 +101,7 @@ def test_import_file_context3(self): def test_import_exception(self): orig_path = list(sys.path) with self.assertRaisesRegexp(RuntimeError, "raised during import"): - pyutilib.misc.run_file( - "import_exception.py", execdir=currdir) + pyutilib.misc.import_file(currdir + "import_exception.py") self.assertIsNot(orig_path, sys.path) self.assertEqual(orig_path, sys.path)