mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Update Lib/test/test_unittest/testmock/testmock.py: fix typo RuntimError to RuntimeError (#108847)
This commit is contained in:
parent
03c4080c71
commit
0c369d6cb8
1 changed files with 1 additions and 1 deletions
|
@ -2270,7 +2270,7 @@ class MockTest(unittest.TestCase):
|
|||
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue