Skip to content

Commit d448fcb

Browse files
authored
gh-104057: Fix direct invocation of test_module (GH-104059)
1 parent e665563 commit d448fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_module.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def test_module_repr_with_full_loader(self):
236236
# Yes, a class not an instance.
237237
m.__loader__ = FullLoader
238238
self.assertEqual(
239-
repr(m), "<module 'foo' (<class 'test.test_module.FullLoader'>)>")
239+
repr(m), f"<module 'foo' (<class '{__name__}.FullLoader'>)>")
240240

241241
def test_module_repr_with_bare_loader_and_filename(self):
242242
m = ModuleType('foo')

0 commit comments

Comments
 (0)