Skip to content

TST: __spec__ (an import-related variable for modules) was added in pyth... #2981

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

Conversation

cimarronm
Copy link
Contributor

...on 3.4. Need to exclude in test_override_builtins. This addresses issue #2842

…ython 3.4. Need to exclude in test_override_builtins.
@tacaswell tacaswell modified the milestone: v1.4.0 Apr 15, 2014
@WeatherGod
Copy link
Member

Just as a sanity question... is it indeed "ok" that we override __spec__? And what is our __spec__ in the first place? I am completely unaware of it.

@cimarronm
Copy link
Contributor Author

__spec__ is not being set by matplotlib itself but rather by the import functionality of python. It is a variable which is set by python similar to __main__ and was just added to the language in version 3.4.

The ok_to_override list is a bit of a misnomer. It includes actually two sets of variables: 1) Those which are not being overridden by any functionality of matplotlib but are simply different from globals based upon the context (like __name__, __spec__, etc.) and 2) those which are being overridden (like any, all, etc.).

tacaswell added a commit that referenced this pull request Apr 16, 2014
…ariable

TST: __spec__ (an import-related variable for modules) was added in pyth...
@tacaswell tacaswell merged commit 8331ba9 into matplotlib:master Apr 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants