[Python-checkins] typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError` (#98351)
JelleZijlstra
webhook-mailer at python.org
Wed Oct 19 20:53:44 EDT 2022
https://github.com/python/cpython/commit/1ca6647f22794f0a0c982ecb03e764db76d51087
commit: 1ca6647f22794f0a0c982ecb03e764db76d51087
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-10-19T17:53:36-07:00
summary:
typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError` (#98351)
files:
M Lib/test/test_typing.py
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 @@ def method(self): ...
class OverloadTests(BaseTestCase):
def test_overload_fails(self):
- with self.assertRaises(RuntimeError):
+ with self.assertRaises(NotImplementedError):
@overload
def blah():
More information about the Python-checkins
mailing list