Show More
@@ -1,16 +1,9 b'' | |||||
1 | """Tests for pylab tools module. |
|
1 | """Tests for pylab tools module. | |
2 | """ |
|
2 | """ | |
3 | #----------------------------------------------------------------------------- |
|
3 | ||
4 |
# Copyright (c) |
|
4 | # Copyright (c) IPython Development Team. | |
5 | # |
|
|||
6 | # Distributed under the terms of the Modified BSD License. |
|
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 | from __future__ import print_function |
|
7 | from __future__ import print_function | |
15 |
|
8 | |||
16 | from io import UnsupportedOperation, BytesIO |
|
9 | from io import UnsupportedOperation, BytesIO | |
@@ -25,7 +18,6 b' import nose.tools as nt' | |||||
25 | from matplotlib import pyplot as plt |
|
18 | from matplotlib import pyplot as plt | |
26 | import numpy as np |
|
19 | import numpy as np | |
27 |
|
20 | |||
28 | # Our own imports |
|
|||
29 | from IPython.core.getipython import get_ipython |
|
21 | from IPython.core.getipython import get_ipython | |
30 | from IPython.core.interactiveshell import InteractiveShell |
|
22 | from IPython.core.interactiveshell import InteractiveShell | |
31 | from IPython.core.display import _PNG, _JPEG |
|
23 | from IPython.core.display import _PNG, _JPEG | |
@@ -33,17 +25,6 b' from .. import pylabtools as pt' | |||||
33 |
|
25 | |||
34 | from IPython.testing import decorators as dec |
|
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 | def test_figure_to_svg(): |
|
29 | def test_figure_to_svg(): | |
49 | # simple empty-figure test |
|
30 | # simple empty-figure test | |
@@ -232,7 +213,7 b' class TestPylabSwitch(object):' | |||||
232 | def test_inline_twice(self): |
|
213 | def test_inline_twice(self): | |
233 | "Using '%matplotlib inline' twice should not reset formatters" |
|
214 | "Using '%matplotlib inline' twice should not reset formatters" | |
234 |
|
215 | |||
235 |
ip = |
|
216 | ip = self.Shell() | |
236 | gui, backend = ip.enable_matplotlib('inline') |
|
217 | gui, backend = ip.enable_matplotlib('inline') | |
237 | nt.assert_equal(gui, 'inline') |
|
218 | nt.assert_equal(gui, 'inline') | |
238 |
|
219 |
General Comments 0
You need to be logged in to leave comments.
Login now