Skip to content

Commit

Permalink
pythongh-104057: Fix direct invocation of test_module (pythonGH-104059)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eclips4 committed May 1, 2023
1 parent e665563 commit d448fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d448fcb

Please sign in to comment.