[Python-checkins] [python/cpython] bbd3cf: Fix ref cycles in TestCase.assertRaises() (#193)

GitHub noreply at github.com
Mon Mar 27 18:56:30 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5
      https://github.com/python/cpython/commit/bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5
  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:
  -----------
  Fix ref cycles in TestCase.assertRaises() (#193)

bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
reference cycle to not keep objects alive longer than expected.




More information about the Python-checkins mailing list