]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300) (GH-28326)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Sep 2021 11:00:16 +0000 (04:00 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Sep 2021 11:00:16 +0000 (13:00 +0200)
commitfd74d2680ef96c0140bc02cf94d1cf1f2ef814c2
tree671b720c1e32784604054cd8266820425fac073a
parenta390bb6d66027517498e75b6b91a91be5f136d28
bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300) (GH-28326)

Fixes infinite loop on unittest.mock.seal() of mocks created by
unittest.create_autospec().

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
(cherry picked from commit 7f60c9e1c6e22cc0e846a872c318570926cd3094)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/unittest/mock.py
Lib/unittest/test/testmock/testsealable.py
Misc/NEWS.d/next/Tests/2021-09-13-00-28-17.bpo-45156.8oomV3.rst [new file with mode: 0644]