mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-104057: Fix direct invocation of test_module (GH-104059)
This commit is contained in:
parent
e665563f83
commit
d448fcb032
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ a = A(destroyed)"""
|
||||||
# Yes, a class not an instance.
|
# Yes, a class not an instance.
|
||||||
m.__loader__ = FullLoader
|
m.__loader__ = FullLoader
|
||||||
self.assertEqual(
|
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):
|
def test_module_repr_with_bare_loader_and_filename(self):
|
||||||
m = ModuleType('foo')
|
m = ModuleType('foo')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue