We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 126be20 commit 4a97f5cCopy full SHA for 4a97f5c
Lib/test/test_exceptions.py
@@ -2630,9 +2630,9 @@ def test_repr(self):
2630
self.assertEqual(repr(exc),
2631
"ModuleNotFoundError('test', name='somename', path='somepath')")
2632
2633
- def test_importerror_name_and_path(self):
+ def test_ModuleNotFoundError_repr_with_failed_import(self):
2634
try:
2635
- import does_not_exist # noqa: F401
+ import does_not_exist # type: ignore[import]
2636
except ModuleNotFoundError as e:
2637
self.assertEqual(e.name, "does_not_exist")
2638
self.assertIsNone(e.path)
0 commit comments