]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError`...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 20 Oct 2022 01:23:40 +0000 (18:23 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Oct 2022 01:23:40 +0000 (18:23 -0700)
(cherry picked from commit 1ca6647f22794f0a0c982ecb03e764db76d51087)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_typing.py

index 71590449dc5639ec56c2dca3649640a2f5ac44bf..298e374e4cfa10219f233600198cccdbaea57c5f 100644 (file)
@@ -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():