mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-115274: Fix direct invocation of testmock/testpatch.py
(#115275)
This commit is contained in:
parent
1f23837277
commit
f8e9c57067
1 changed files with 1 additions and 1 deletions
|
@ -1912,7 +1912,7 @@ class PatchTest(unittest.TestCase):
|
|||
|
||||
with patch.object(foo, '__module__', "testpatch2"):
|
||||
self.assertEqual(foo.__module__, "testpatch2")
|
||||
self.assertEqual(foo.__module__, 'test.test_unittest.testmock.testpatch')
|
||||
self.assertEqual(foo.__module__, __name__)
|
||||
|
||||
with patch.object(foo, '__annotations__', dict([('s', 1, )])):
|
||||
self.assertEqual(foo.__annotations__, dict([('s', 1, )]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue