[Python-checkins] [python/cpython] b41dbb: bpo-23890: Fix ref cycle in TestCase.assertRaises

GitHub noreply at github.com
Thu Jun 15 18:04:36 EDT 2017


 Branch: refs/heads/backport-bbd3cf8-3.6
 Home: https://github.com/python/cpython
 Commit: b41dbb303a975a43fcfac8bb02a4da1bdb3886ea
 https://github.com/python/cpython/commit/b41dbb303a975a43fcfac8bb02a4da1bdb3886ea
 Author: Victor Stinner <victor.stinner at gmail.com>
 Date: 2017年06月15日 (2017年6月15日)
 Changed paths:
 M Lib/unittest/case.py
 M Lib/unittest/test/test_case.py
 M Misc/NEWS
 Log Message:
 -----------
 bpo-23890: Fix ref cycle in TestCase.assertRaises
unittest.TestCase.assertRaises() now manually breaks a
reference cycle to not keep objects alive longer than expected.
(cherry picked from commit bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /