Skip to content

Commit

Permalink
pythongh-115274: Fix direct invocation of testmock/testpatch.py (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored and fsc-eriker committed Feb 14, 2024
1 parent ae6f000 commit 09c048d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_unittest/testmock/testpatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ def foo(x=0):

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, )]))
Expand Down

0 comments on commit 09c048d

Please sign in to comment.