8000 ENH: Do not check the type of module.__dict__ explicit in test. by Daetalus · Pull Request #7668 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Do not check the type of module.__dict__ explicit in test. #7668

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

Merged
merged 1 commit into from
May 24, 2016

Conversation

Daetalus
Copy link
Contributor
@Daetalus Daetalus commented May 24, 2016

This patch is for Pyston compatibility. In Pyston, the type of module.__dict__
is attrwrapper, which is a dict like type. The test in here is not really care
for particular type, but instead cares for particular behaviour. So change the
expilit type check to a interface check. This check can also get passed in CPython and PyPy.
@njsmith

This patch is for Pyston compatibility. In Pyston, the type of module.__dict__
is attrwrapper, which is a dict like type. The test in here is not really care
for particular type, but instead cares for particular behaviour. So change the
expilit type check to a interface check. This check can also get passed in CPython and PyPy
@charris
Copy link
Member
charris commented May 24, 2016

LGTM. @njsmith Thoughts?

@charris
Copy link
Member
charris commented May 24, 2016

Thanks @Daetalus .

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

Successfully merging this pull request may close these issues.

2 participants
0