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

GitHub noreply at github.com
Mon Mar 27 19:01:29 EDT 2017


  Branch: refs/heads/backport-bbd3cf8-3.6
  Home:   https://github.com/python/cpython
  Commit: 655f38e7df649e27a6a56ba2832bc222cfb548a3
      https://github.com/python/cpython/commit/655f38e7df649e27a6a56ba2832bc222cfb548a3
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-03-28 (Tue, 28 Mar 2017)

  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