]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError`...
authorNikita Sobolev <mail@sobolevn.me>
Thu, 20 Oct 2022 00:53:36 +0000 (03:53 +0300)
committerGitHub <noreply@github.com>
Thu, 20 Oct 2022 00:53:36 +0000 (17:53 -0700)
Lib/test/test_typing.py

index e4cf3c7d53b657248f8861dd157ea28e6f621b72..ab8e71735c4d681b87f2856848a81c1bbdea679d 100644 (file)
@@ -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():