Show More
@@ -73,7 +73,9 b' class TestPylabSwitch(object):' | |||||
73 |
|
73 | |||
74 | # Save rcParams since they get modified |
|
74 | # Save rcParams since they get modified | |
75 | self._saved_rcParams = matplotlib.rcParams |
|
75 | self._saved_rcParams = matplotlib.rcParams | |
|
76 | self._saved_rcParamsOrig = matplotlib.rcParamsOrig | |||
76 | matplotlib.rcParams = dict(backend='Qt4Agg') |
|
77 | matplotlib.rcParams = dict(backend='Qt4Agg') | |
|
78 | matplotlib.rcParamsOrig = dict(backend='Qt4Agg') | |||
77 |
|
79 | |||
78 | # Mock out functions |
|
80 | # Mock out functions | |
79 | self._save_am = pt.activate_matplotlib |
|
81 | self._save_am = pt.activate_matplotlib | |
@@ -89,6 +91,7 b' class TestPylabSwitch(object):' | |||||
89 | pt.configure_inline_support = self._save_cis |
|
91 | pt.configure_inline_support = self._save_cis | |
90 | import matplotlib |
|
92 | import matplotlib | |
91 | matplotlib.rcParams = self._saved_rcParams |
|
93 | matplotlib.rcParams = self._saved_rcParams | |
|
94 | matplotlib.rcParamsOrig = self._saved_rcParamsOrig | |||
92 |
|
95 | |||
93 | def test_qt(self): |
|
96 | def test_qt(self): | |
94 | s = self.Shell() |
|
97 | s = self.Shell() |
General Comments 0
You need to be logged in to leave comments.
Login now