summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2016-09-07 23:56:15 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2016-09-07 23:56:15 (GMT)
commit46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7 (patch)
treee814eb2b2365001ddbc119372da70eed52f2aeb5 /Lib/test/test_site.py
parentc943265ba56e7ce7e2fe79fdecfc6670e10e5467 (diff)
downloadcpython-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.py2
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")