8000 Merge pull request #6741 from Kojoley/missing-cleanup-decorator · matplotlib/matplotlib@74b634e · GitHub
[go: up one dir, main page]

Skip to content

Commit 74b634e

Browse files
committed
Merge pull request #6741 from Kojoley/missing-cleanup-decorator
Missing `cleanup` decorator in `test_subplots.test_exceptions`
1 parent 9ea7315 commit 74b634e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

lib/matplotlib/tests/test_subplots.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,13 @@ def test_shared():
102102
plt.close(f)
103103

104104

105+
@cleanup
105106
def test_exceptions():
106107
# TODO should this test more options?
107108
assert_raises(ValueError, plt.subplots, 2, 2, sharex='blah')
108109
assert_raises(ValueError, plt.subplots, 2, 2, sharey='blah')
109110
# We filter warnings in this test which are genuine since
110-
# the pount of this test is to ensure that this raises.
111+
# the point of this test is to ensure that this raises.
111112
with warnings.catch_warnings():
112113
warnings.filterwarnings('ignore',
113114
message='.*sharex\ argument\ to\ subplots',
@@ -128,16 +129,6 @@ def test_subplots_offsettext():
128129
axes[1, 1].plot(y, x)
129130

130131

131-
@cleanup
132-
def test_subplots():
133-
# things to test
134-
# - are axes actually shared?
135-
# - are tickmarks correctly hidden?
136-
test_shared()
137-
# - are exceptions thrown correctly
138-
test_exceptions()
139-
140-
141132
if __name__ == "__main__":
142133
import nose
143134
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)

0 commit comments

Comments
 (0)
0