From: Kirill Podoprigora <80244920+Eclips4@users.noreply.github.com> Date: Mon, 1 May 2023 20:17:47 +0000 (+0300) Subject: gh-104057: Fix direct invocation of test_module (GH-104059) X-Git-Tag: v3.12.0b1~339 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d448fcb0323bf00cb4ff4a1e65e8424a73b5f0d4;p=thirdparty%2FPython%2Fcpython.git gh-104057: Fix direct invocation of test_module (GH-104059) --- diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py index 70e4efea6935..c7eb92290e1b 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), ")>") + repr(m), f")>") def test_module_repr_with_bare_loader_and_filename(self): m = ModuleType('foo')