Skip to content

Commit

Permalink
Update Lib/test/test_unittest/testmock/testmock.py: fix typo RuntimEr…
Browse files Browse the repository at this point in the history
…ror to RuntimeError (#108847)
  • Loading branch information
falconlee236 authored Sep 3, 2023
1 parent 03c4080 commit 0c369d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_unittest/testmock/testmock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,7 @@ def test_misspelled_arguments(self):
class Foo():
one = 'one'
# patch, patch.object and create_autospec need to check for misspelled
# arguments explicitly and throw a RuntimError if found.
# arguments explicitly and throw a RuntimeError if found.
with self.assertRaises(RuntimeError):
with patch(f'{__name__}.Something.meth', autospect=True): pass
with self.assertRaises(RuntimeError):
Expand Down

0 comments on commit 0c369d6

Please sign in to comment.