mirror of
https://github.com/python/cpython
synced 2024-10-14 17:59:38 +00:00
gh-104057: Fix direct invocation of test_module (GH-104059)
This commit is contained in:
parent
e665563f83
commit
d448fcb032
|
@ -236,7 +236,7 @@ def test_module_repr_with_full_loader(self):
|
|||
# Yes, a class not an instance.
|
||||
m.__loader__ = FullLoader
|
||||
self.assertEqual(
|
||||
repr(m), "<module 'foo' (<class 'test.test_module.FullLoader'>)>")
|
||||
repr(m), f"<module 'foo' (<class '{__name__}.FullLoader'>)>")
|
||||
|
||||
def test_module_repr_with_bare_loader_and_filename(self):
|
||||
m = ModuleType('foo')
|
||||
|
|
Loading…
Reference in a new issue