]> granicus.if.org Git - python/commit
bpo-24758: Improve the error msg for unittest.mock.Mock()'s unsafe mode (#12991)
authorZackery Spytz <zspytz@gmail.com>
Wed, 8 May 2019 17:32:24 +0000 (11:32 -0600)
committerKushal Das <mail@kushaldas.in>
Wed, 8 May 2019 17:32:23 +0000 (23:02 +0530)
commitb9b08cd948de97d756a199b60becce8397a8c882
treef694404dcb4599d035307c9c7e3074e603da76f4
parent6bd81734de0b73f1431880d6a75fb71bcbc65fa1
bpo-24758: Improve the error msg for unittest.mock.Mock()'s unsafe mode (#12991)

* bpo-24758: Improve the error msg for unittest.mock.Mock()'s unsafe mode

* Make the requested changes.
Lib/unittest/mock.py
Lib/unittest/test/testmock/testmock.py