mirror of https://github.com/python/cpython
gh-104057: Fix direct invocation of test_module (GH-104059)
This commit is contained in:
parent
e665563f83
commit
d448fcb032
|
@ -236,7 +236,7 @@ a = A(destroyed)"""
|
|||
# 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 New Issue