mirror of https://github.com/python/cpython
Update Lib/test/test_unittest/testmock/testmock.py: fix typo RuntimError to RuntimeError (#108847)
This commit is contained in:
parent
03c4080c71
commit
0c369d6cb8
|
@ -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…
Reference in New Issue