Skip to content

Commit

Permalink
[3.11] gh-115274: Fix direct invocation of testmock/testpatch.py (GH-…
Browse files Browse the repository at this point in the history
…115275) (#115281)

(cherry picked from commit f8e9c57)

Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
sobolevn authored Feb 11, 2024
1 parent 3aa9621 commit def102a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/unittest/test/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__, 'unittest.test.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 def102a

Please sign in to comment.