]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Sep 2021 10:50:28 +0000 (03:50 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Sep 2021 10:50:28 +0000 (03:50 -0700)
commit13257d9fca13dfa1bda5b802d68ddaec72f3a07e
tree6ceed0401b6d913166277d54ef098fa095b2b0f8
parent9cd8fb8d6356c17dafa1be727cab3d438f6df53f
bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300)

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]