]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38669: patch.object now raises a helpful error (GH17034)
authorElena Oat <oat.elena@gmail.com>
Sun, 8 Dec 2019 20:14:38 +0000 (12:14 -0800)
committerChris Withers <chris@withers.org>
Sun, 8 Dec 2019 20:14:38 +0000 (20:14 +0000)
commitcd90a52983db34896a6335a572d55bdda274778f
tree601b917b63353a957a7763478d3a76480d9bb039
parent28c91631c24e53713ad0e8a2bbae716373f5e53d
bpo-38669: patch.object now raises a helpful error (GH17034)

This means a clearer message is now shown when patch.object is called with two string arguments, rather than a class and a string argument.
Lib/unittest/mock.py
Lib/unittest/test/testmock/testpatch.py
Misc/NEWS.d/next/Tests/2019-11-04-02-54-16.bpo-38669.pazXZ8.rst [new file with mode: 0644]