8000 Forgot the other use of _do_cleanup() · matplotlib/matplotlib@6421160 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6421160

Browse files
committed
Forgot the other use of _do_cleanup()
1 parent 7d266fc commit 6421160

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/testing/decorators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ class CleanupTestCase(unittest.TestCase):
101101
def setUpClass(cls):
102102
import matplotlib.units
103103
cls.original_units_registry = matplotlib.units.registry.copy()
104+
cls.original_settings = mpl.rcParams.copy()
104105

105106
@classmethod
106107
def tearDownClass(cls):
107-
_do_cleanup(cls.original_units_registry)
108+
_do_cleanup(cls.original_units_registry,
109+
cls.original_settings)
108110

109111

110112
def cleanup(func):

0 commit comments

Comments
 (0)
0