[python/cpython] d1a1de: bpo-30197: Enhance functions swap_attr() and swap_...

Branch: refs/heads/master Home: https://github.com/python/cpython Commit: d1a1def7bf221b04dcf3fc3a67aa19aa2f622f83 https://github.com/python/cpython/commit/d1a1def7bf221b04dcf3fc3a67aa19aa2f6... Author: Serhiy Storchaka <storchaka@gmail.com> Date: 2017-04-28 (Fri, 28 Apr 2017) Changed paths: M Lib/test/support/__init__.py M Lib/test/test_support.py M Lib/test/test_tempfile.py M Misc/NEWS Log Message: ----------- bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. (#1341) * bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. They now work when delete replaced attribute or item inside the with statement. The old value of the attribute or item (or None if it doesn't exist) now will be assigned to the target of the "as" clause, if there is one. * Update docstrings.
participants (1)
-
GitHub