Skip to content

Commit

Permalink
Merge 6ea57ee into 3533dcf
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Dec 13, 2019
2 parents 3533dcf + 6ea57ee commit c3623c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyutilib/misc/tests/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c3623c8

Please sign in to comment.