]> granicus.if.org Git - python/commit
Fix ref cycles in TestCase.assertRaises() (#193) (#2228)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 15 Jun 2017 22:51:24 +0000 (00:51 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Jun 2017 22:51:24 +0000 (00:51 +0200)
commit3dc573c8d19dc42ed786ca3237afdad183c41ca0
treeca07ce23ca68a2f2c6221a96621ab59debec27ae
parentab4ea09604ea7754a80e4fc36280f5772bf4a8b2
Fix ref cycles in TestCase.assertRaises() (#193) (#2228)

bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
reference cycle to not keep objects alive longer than expected.
(cherry picked from commit bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5)
Lib/unittest/case.py
Lib/unittest/test/test_case.py
Misc/NEWS