Skip to content

bpo-31174: Improve the code of test_tools.test_unparse.#4146

Merged
serhiy-storchaka merged 1 commit into
python:masterfrom
serhiy-storchaka:test_unparse-get_names
Oct 27, 2017
Merged

bpo-31174: Improve the code of test_tools.test_unparse.#4146
serhiy-storchaka merged 1 commit into
python:masterfrom
serhiy-storchaka:test_unparse-get_names

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Oct 27, 2017

Copy link
Copy Markdown
Member

If get_names() is an instance method, it shouldn't cache its result statically. It should be a static method, but a class method works as well.

https://bugs.python.org/issue31174

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@serhiy-storchaka serhiy-storchaka merged commit 7351f9e into python:master Oct 27, 2017
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the test_unparse-get_names branch October 27, 2017 12:35
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 27, 2017
@bedevere-bot

Copy link
Copy Markdown

GH-4148 is a backport of this pull request to the 3.6 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants