summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Podoprigora <80244920+Eclips4@users.noreply.github.com>2023-05-01 20:17:47 (GMT)
committerGitHub <noreply@github.com>2023-05-01 20:17:47 (GMT)
commitd448fcb0323bf00cb4ff4a1e65e8424a73b5f0d4 (patch)
treeb00a3eeb52aa9ac15b5af53dc069ef72d38a1f4a
parente665563f8301d0db5cb0847d75fc879f074aa100 (diff)
downloadcpython-d448fcb0323bf00cb4ff4a1e65e8424a73b5f0d4.zip
cpython-d448fcb0323bf00cb4ff4a1e65e8424a73b5f0d4.tar.gz
cpython-d448fcb0323bf00cb4ff4a1e65e8424a73b5f0d4.tar.bz2
gh-104057: Fix direct invocation of test_module (GH-104059)
-rw-r--r--Lib/test/test_module.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py
index 70e4efe..c7eb922 100644
--- a/Lib/test/test_module.py
+++ b/Lib/test/test_module.py
@@ -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')