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 ccd79d6 commit a8af464Copy full SHA for a8af464
Lib/test/test_inspect/test_inspect.py
@@ -812,13 +812,10 @@ def test_getfile_builtin_module(self):
812
self.assertStartsWith(str(e.exception), '<module')
813
814
def test_getfile_custom_module(self):
815
- import re
816
- custom_module = types.ModuleType('custom_module')
817
- msg = re.escape(
818
- f'Cannot get source from {custom_module!r}'
819
- )
+ my_mod = types.ModuleType('my_mod')
+ msg = re.escape(f'cannot get source from {my_mod!r}')
820
with self.assertRaisesRegex(TypeError, msg) as e:
821
- inspect.getfile(custom_module)
+ inspect.getfile(my_mod)
822
823
def test_getfile_builtin_class(self):
824
with self.assertRaises(TypeError) as e:
0 commit comments