From 9d8042113074f8340c81187b239499e43361c888 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 20 Oct 2022 03:53:36 +0300 Subject: [PATCH] typing tests: `_overload_dummy` raises `NotImplementedError`, not `RuntimeError` (GH-98351) (cherry picked from commit 1ca6647f22794f0a0c982ecb03e764db76d51087) Co-authored-by: Nikita Sobolev --- 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 71590449dc5639..298e374e4cfa10 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4367,7 +4367,7 @@ def method(self): ... class OverloadTests(BaseTestCase): def test_overload_fails(self): - with self.assertRaises(RuntimeError): + with self.assertRaises(NotImplementedError): @overload def blah():