Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.5] bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. (#1341) #1346

Merged
merged 2 commits into from
Apr 28, 2017

Conversation

serhiy-storchaka
Copy link
Member

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.5 tests Tests in the Lib/test dir labels Apr 28, 2017
@serhiy-storchaka serhiy-storchaka merged commit 910ba93 into python:3.5 Apr 28, 2017
@serhiy-storchaka serhiy-storchaka deleted the backport-d1a1def-3.5 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