Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99e3be3

Browse files
committed
TST : add cleanup decorators to some tests
Mostly paranoia
1 parent d9ab665 commit 99e3be3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/tests/test_rcparams.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import matplotlib as mpl
1111
from matplotlib.tests import assert_str_equal
12+
from matplotlib.testing.decorators import cleanup
1213
from nose.tools import assert_true, assert_raises, assert_equal
1314
import nose
1415
from itertools import chain
@@ -116,6 +117,7 @@ def test_rcparams_init():
116117
mpl.RcParams({'figure.figsize': (3.5, 42, 1)})
117118

118119

120+
@cleanup
119121
def test_Bug_2543():
120122
# Test that it possible to add all values to itself / deepcopy
121123
# This was not possible because validate_bool_maybe_none did not
@@ -146,6 +148,7 @@ def test_Bug_2543():
146148
assert_true(mpl.rcParams['svg.fonttype'] == "none")
147149

148150

151+
@cleanup
149152
def test_Bug_2543_newer_python():
150153
# only split from above because of the usage of assert_raises
151154
# as a context manager, which only works in 2.7 and above

0 commit comments

Comments
 (0)