[Python-checkins] [python/cpython] 910ba9: [3.5] bpo-30197: Enhance functions swap_attr() and...

GitHub noreply at github.com
Fri Apr 28 13:05:55 EDT 2017


  Branch: refs/heads/3.5
  Home:   https://github.com/python/cpython
  Commit: 910ba937e90ffe3aa154a5b27dc7e2c3d3c88d1f
      https://github.com/python/cpython/commit/910ba937e90ffe3aa154a5b27dc7e2c3d3c88d1f
  Author: Serhiy Storchaka <storchaka at 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:
  -----------
  [3.5] bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. (#1341) (#1346)

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.

(cherry picked from commit d1a1def7bf221b04dcf3fc3a67aa19aa2f622f83)




More information about the Python-checkins mailing list