Skip to content

Commit

Permalink
typing tests: _overload_dummy raises NotImplementedError, not `Ru…
Browse files Browse the repository at this point in the history
…ntimeError` (GH-98351)

(cherry picked from commit 1ca6647)

Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
miss-islington and sobolevn authored Oct 20, 2022
1 parent df4aaff commit 5f5fa4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 5f5fa4c

Please sign in to comment.