diff options
author | Kirill Podoprigora <80244920+Eclips4@users.noreply.github.com> | 2023-05-01 20:17:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 20:17:47 (GMT) |
commit | d448fcb0323bf00cb4ff4a1e65e8424a73b5f0d4 (patch) | |
tree | b00a3eeb52aa9ac15b5af53dc069ef72d38a1f4a | |
parent | e665563f8301d0db5cb0847d75fc879f074aa100 (diff) | |
download | cpython-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.py | 2 |
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') |