From 4d5da0a70b6f9c2aab6aee1f10446e19fecc3bc3 2013-10-07 22:36:05 From: Thomas Kluyver Date: 2013-10-07 22:36:05 Subject: [PATCH] test_pylabtools also needs to modify matplotlib.rcParamsOrig closes gh-4335 --- diff --git a/IPython/core/tests/test_pylabtools.py b/IPython/core/tests/test_pylabtools.py index 16ced0f..68d8060 100644 --- a/IPython/core/tests/test_pylabtools.py +++ b/IPython/core/tests/test_pylabtools.py @@ -73,7 +73,9 @@ class TestPylabSwitch(object): # Save rcParams since they get modified self._saved_rcParams = matplotlib.rcParams + self._saved_rcParamsOrig = matplotlib.rcParamsOrig matplotlib.rcParams = dict(backend='Qt4Agg') + matplotlib.rcParamsOrig = dict(backend='Qt4Agg') # Mock out functions self._save_am = pt.activate_matplotlib @@ -89,6 +91,7 @@ class TestPylabSwitch(object): pt.configure_inline_support = self._save_cis import matplotlib matplotlib.rcParams = self._saved_rcParams + matplotlib.rcParamsOrig = self._saved_rcParamsOrig def test_qt(self): s = self.Shell()