Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

…t.support. (#1341)

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 d1a1def)

…t.support. (python#1341)

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 d1a1def)
…t.support. (pythonGH-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..
(cherry picked from commit d1a1def)
@serhiy-storchaka serhiy-storchaka added cherry-pick for 3.6 tests Tests in the Lib/test dir labels Apr 28, 2017
@serhiy-storchaka serhiy-storchaka merged commit 712114b into python:3.6 Apr 28, 2017
@serhiy-storchaka serhiy-storchaka deleted the backport-d1a1def-3.6 branch April 28, 2017 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants