From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 1 May 2023 14:17:12 +0000 (-0700) Subject: [3.11] gh-104036: Fix direct invocation of test_typing (GH-104037) (#104039) X-Git-Tag: v3.11.4~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1be8bed236e841f33e10092aa2e774dd90d74c9b;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-104036: Fix direct invocation of test_typing (GH-104037) (#104039) gh-104036: Fix direct invocation of test_typing (GH-104037) Previously, `python -m test test_typing` worked, but `python Lib/test/test_typing.py` did not. (cherry picked from commit 4181d078fc945313568eb39965cb9190881606b5) Co-authored-by: Kirill Podoprigora <80244920+Eclips4@users.noreply.github.com> --- diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 79fba267b4bc..e46a6ca06200 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -114,7 +114,7 @@ class AnyTests(BaseTestCase): class Sub(Any): pass self.assertEqual( repr(Sub), - ".Sub'>", + f".Sub'>", ) def test_errors(self):