]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add missed "f" in an f-string (GH-108906)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 5 Sep 2023 12:00:28 +0000 (15:00 +0300)
committerGitHub <noreply@github.com>
Tue, 5 Sep 2023 12:00:28 +0000 (12:00 +0000)
Lib/test/libregrtest/runtest.py

index 9cb71fbfb1d178d8395704b7f76a99f380a179a8..16ae04191da7688ba093cefd69692901fb6f544c 100644 (file)
@@ -442,7 +442,7 @@ def _load_run_test(result: TestResult, ns: Namespace) -> None:
 
     if hasattr(test_mod, "test_main"):
         # https://github.com/python/cpython/issues/89392
-        raise Exception("Module {result.test_name} defines test_main() which is no longer supported by regrtest")
+        raise Exception(f"Module {result.test_name} defines test_main() which is no longer supported by regrtest")
     def test_func():
         return run_unittest(test_mod)