Skip to content

Switch testing to pytest completely #7974

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 14 commits into from
Feb 3, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change stack level of Figure.gca warning.
Raising the warning on the current level breaks tests on Python 2.7
which doesn't reset the warning filter correctly.
  • Loading branch information
QuLogic committed Feb 2, 2017
commit 02d7cf81fb3684fb1a044f8845407c450bd57da4
2 changes: 1 addition & 1 deletion lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ def gca(self, **kwargs):
else:
warnings.warn('Requested projection is different from '
'current axis projection, creating new axis '
'with requested projection.')
'with requested projection.', stacklevel=2)

# no axes found, so create one which spans the figure
return self.add_subplot(1, 1, 1, **kwargs)
Expand Down