From 6df37a208cbd6d7d86646887cef121f7c181a5c5 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 17 Oct 2022 12:43:10 +0300 Subject: [PATCH] `_overload_dummy` raise `NotImplementedError`, not `RuntimeError` --- Lib/test/test_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index e4cf3c7d53b657..ab8e71735c4d68 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():