]> granicus.if.org Git - python/commit
bpo-23890: Fix ref cycle in TestCase.assertRaises (#858)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 15 Jun 2017 22:18:15 +0000 (00:18 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Jun 2017 22:18:15 +0000 (00:18 +0200)
commit50dbf577e10f806056d60ac956db0748d2cc8257
treef28a773dacfbfee77ef7d04da81f0c4be19e2707
parente064d4dfeda09fd206653697b70b434e98cc1b57
bpo-23890: Fix ref cycle in TestCase.assertRaises (#858)

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