From: Nikita Sobolev Date: Thu, 20 Oct 2022 00:53:36 +0000 (+0300) Subject: typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError`... X-Git-Tag: v3.12.0a1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ca6647f22794f0a0c982ecb03e764db76d51087;p=thirdparty%2FPython%2Fcpython.git typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError` (#98351) --- diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index e4cf3c7d53b6..ab8e71735c4d 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4398,7 +4398,7 @@ class MethodHolder: class OverloadTests(BaseTestCase): def test_overload_fails(self): - with self.assertRaises(RuntimeError): + with self.assertRaises(NotImplementedError): @overload def blah():