diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2016-09-07 23:56:15 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2016-09-07 23:56:15 (GMT) |
commit | 46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7 (patch) | |
tree | e814eb2b2365001ddbc119372da70eed52f2aeb5 /Lib/test/test_site.py | |
parent | c943265ba56e7ce7e2fe79fdecfc6670e10e5467 (diff) | |
download | cpython-46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7.zip cpython-46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7.tar.gz cpython-46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7.tar.bz2 |
Issue #15767: Use ModuleNotFoundError.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index f698927..0720230 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -138,7 +138,7 @@ class HelperFunctionsTests(unittest.TestCase): re.escape(os.path.join(pth_dir, pth_fn))) # XXX: ditto previous XXX comment. self.assertRegex(err_out.getvalue(), 'Traceback') - self.assertRegex(err_out.getvalue(), 'ImportError') + self.assertRegex(err_out.getvalue(), 'ModuleNotFoundError') @unittest.skipIf(sys.platform == "win32", "Windows does not raise an " "error for file paths containing null characters") |