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

Skip to content

Commit d498f56

Browse files
authored
Merge pull request #6741 from Kojoley/missing-cleanup-decorator
Missing `cleanup` decorator in `test_subplots.test_exceptions`
2 parents 70fd5a9 + 245481d commit d498f56

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

lib/matplotlib/tests/test_subplots.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ def test_shared():
102102
check_visible(axs, [False, False, True, True], [True, False, True, False])
103103

104104

105-
105+
@cleanup
106106
def test_exceptions():
107107
# TODO should this test more options?
108108
assert_raises(ValueError, plt.subplots, 2, 2, sharex='blah')
109109
assert_raises(ValueError, plt.subplots, 2, 2, sharey='blah')
110110
# We filter warnings in this test which are genuine since
111-
# the pount of this test is to ensure that this raises.
111+
# the point of this test is to ensure that this raises.
112112
with warnings.catch_warnings():
113113
warnings.filterwarnings('ignore',
114114
message='.*sharex\ argument\ to\ subplots',
@@ -129,16 +129,6 @@ def test_subplots_offsettext():
129129
axes[1, 1].plot(y, x)
130130

131131

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

0 commit comments

Comments
 (0)
0