Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
fix the stack remove error#7335
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
db343c3
25492ce
23cfcda
6932d7c
0ab7a30
9d2d33e
23a8d73
33318e3
6dc9248
4c72fe7
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
… or modify the old one
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4,7 +4,7 @@ | ||
import six | ||
from six.moves import xrange | ||
from nose.tools import assert_equal, assert_true, assert_raises | ||
from matplotlib import rcParams, figure | ||
from matplotlib.testing.decorators import image_comparison, cleanup | ||
from matplotlib.axes import Axes | ||
@@ -219,24 +219,13 @@ def test_figaspect(): | ||
@cleanup | ||
def test_stack_remove(): | ||
a = figure.AxesStack() | ||
key = '123' | ||
axes = plt.figure().add_subplot(111) | ||
a.add(key, axes) | ||
# Verify some things | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Is something supposed to come after this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. no, sorry , it should come before the assertion. Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Should the comment be more specific? | ||
assert_raises(KeyError, a.add, key, plt.figure().add_subplot(111)) | ||
assert_equal(a._elements, [(key, (1, axes))]) | ||
if __name__ == "__main__": | ||