Skip to content

Commit 09c048d

Browse files
sobolevnfsc-eriker
authored andcommitted
pythongh-115274: Fix direct invocation of testmock/testpatch.py (python#115275)
1 parent ae6f000 commit 09c048d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_unittest/testmock/testpatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,7 @@ def foo(x=0):
19121912

19131913
with patch.object(foo, '__module__', "testpatch2"):
19141914
self.assertEqual(foo.__module__, "testpatch2")
1915-
self.assertEqual(foo.__module__, 'test.test_unittest.testmock.testpatch')
1915+
self.assertEqual(foo.__module__, __name__)
19161916

19171917
with patch.object(foo, '__annotations__', dict([('s', 1, )])):
19181918
self.assertEqual(foo.__annotations__, dict([('s', 1, )]))

0 commit comments

Comments
 (0)