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` (pythonGH-98351)

(cherry picked from commit 1ca6647)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
sobolevn authored and miss-islington committed Oct 20, 2022
1 parent 0b71dad commit 9d80421
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 9d80421

Please sign in to comment.