##// END OF EJS Templates
fix instantiation of shell in test_inline_twice...
Min RK -
Show More
@@ -1,16 +1,9 b''
1 1 """Tests for pylab tools module.
2 2 """
3 #-----------------------------------------------------------------------------
4 # Copyright (c) 2011, the IPython Development Team.
5 #
3
4 # Copyright (c) IPython Development Team.
6 5 # Distributed under the terms of the Modified BSD License.
7 #
8 # The full license is in the file COPYING.txt, distributed with this software.
9 #-----------------------------------------------------------------------------
10 6
11 #-----------------------------------------------------------------------------
12 # Imports
13 #-----------------------------------------------------------------------------
14 7 from __future__ import print_function
15 8
16 9 from io import UnsupportedOperation, BytesIO
@@ -25,7 +18,6 b' import nose.tools as nt'
25 18 from matplotlib import pyplot as plt
26 19 import numpy as np
27 20
28 # Our own imports
29 21 from IPython.core.getipython import get_ipython
30 22 from IPython.core.interactiveshell import InteractiveShell
31 23 from IPython.core.display import _PNG, _JPEG
@@ -33,17 +25,6 b' from .. import pylabtools as pt'
33 25
34 26 from IPython.testing import decorators as dec
35 27
36 #-----------------------------------------------------------------------------
37 # Globals and constants
38 #-----------------------------------------------------------------------------
39
40 #-----------------------------------------------------------------------------
41 # Local utilities
42 #-----------------------------------------------------------------------------
43
44 #-----------------------------------------------------------------------------
45 # Classes and functions
46 #-----------------------------------------------------------------------------
47 28
48 29 def test_figure_to_svg():
49 30 # simple empty-figure test
@@ -232,7 +213,7 b' class TestPylabSwitch(object):'
232 213 def test_inline_twice(self):
233 214 "Using '%matplotlib inline' twice should not reset formatters"
234 215
235 ip = get_ipython()
216 ip = self.Shell()
236 217 gui, backend = ip.enable_matplotlib('inline')
237 218 nt.assert_equal(gui, 'inline')
238 219
General Comments 0
You need to be logged in to leave comments. Login now