From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 20 Oct 2022 01:23:40 +0000 (-0700) Subject: typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError`... X-Git-Tag: v3.11.1~251 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f5fa4ca4b959f5e86fe141e297fd8b93eaeabff;p=thirdparty%2FPython%2Fcpython.git typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError` (GH-98351) (cherry picked from commit 1ca6647f22794f0a0c982ecb03e764db76d51087) Co-authored-by: Nikita Sobolev --- diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 71590449dc56..298e374e4cfa 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4367,7 +4367,7 @@ class MethodHolder: class OverloadTests(BaseTestCase): def test_overload_fails(self): - with self.assertRaises(RuntimeError): + with self.assertRaises(NotImplementedError): @overload def blah():