##// END OF EJS Templates
Suppress bunch of self-deprecation warnings...
Nikita Kniazev -
Show More
@@ -161,9 +161,11 b' def _get_inline_config():'
161 def test_set_matplotlib_close():
161 def test_set_matplotlib_close():
162 cfg = _get_inline_config()
162 cfg = _get_inline_config()
163 cfg.close_figures = False
163 cfg.close_figures = False
164 display.set_matplotlib_close()
164 with pytest.deprecated_call():
165 display.set_matplotlib_close()
165 assert cfg.close_figures
166 assert cfg.close_figures
166 display.set_matplotlib_close(False)
167 with pytest.deprecated_call():
168 display.set_matplotlib_close(False)
167 assert not cfg.close_figures
169 assert not cfg.close_figures
168
170
169 _fmt_mime_map = {
171 _fmt_mime_map = {
@@ -185,7 +187,8 b' def test_set_matplotlib_formats():'
185 (),
187 (),
186 ]:
188 ]:
187 active_mimes = {_fmt_mime_map[fmt] for fmt in formats}
189 active_mimes = {_fmt_mime_map[fmt] for fmt in formats}
188 display.set_matplotlib_formats(*formats)
190 with pytest.deprecated_call():
191 display.set_matplotlib_formats(*formats)
189 for mime, f in formatters.items():
192 for mime, f in formatters.items():
190 if mime in active_mimes:
193 if mime in active_mimes:
191 assert Figure in f
194 assert Figure in f
@@ -201,8 +204,9 b' def test_set_matplotlib_formats_kwargs():'
201 cfg = _get_inline_config()
204 cfg = _get_inline_config()
202 cfg.print_figure_kwargs.update(dict(foo='bar'))
205 cfg.print_figure_kwargs.update(dict(foo='bar'))
203 kwargs = dict(dpi=150)
206 kwargs = dict(dpi=150)
204 display.set_matplotlib_formats('png', **kwargs)
207 with pytest.deprecated_call():
205 formatter = ip.display_formatter.formatters['image/png']
208 display.set_matplotlib_formats("png", **kwargs)
209 formatter = ip.display_formatter.formatters["image/png"]
206 f = formatter.lookup_by_type(Figure)
210 f = formatter.lookup_by_type(Figure)
207 formatter_kwargs = f.keywords
211 formatter_kwargs = f.keywords
208 expected = kwargs
212 expected = kwargs
@@ -102,9 +102,9 b' def test_select_figure_formats_str():'
102
102
103 def test_select_figure_formats_kwargs():
103 def test_select_figure_formats_kwargs():
104 ip = get_ipython()
104 ip = get_ipython()
105 kwargs = dict(quality=10, bbox_inches='tight')
105 kwargs = dict(bbox_inches="tight")
106 pt.select_figure_formats(ip, 'png', **kwargs)
106 pt.select_figure_formats(ip, "png", **kwargs)
107 formatter = ip.display_formatter.formatters['image/png']
107 formatter = ip.display_formatter.formatters["image/png"]
108 f = formatter.lookup_by_type(Figure)
108 f = formatter.lookup_by_type(Figure)
109 cell = f.keywords
109 cell = f.keywords
110 expected = kwargs
110 expected = kwargs
@@ -6,3 +6,15 b' coverage:'
6 target: auto
6 target: auto
7 codecov:
7 codecov:
8 require_ci_to_pass: false
8 require_ci_to_pass: false
9
10 ignore:
11 - IPython/kernel/*
12 - IPython/consoleapp.py
13 - IPython/core/inputsplitter.py
14 - IPython/lib/inputhook*.py
15 - IPython/lib/kernel.py
16 - IPython/utils/jsonutil.py
17 - IPython/utils/localinterfaces.py
18 - IPython/utils/log.py
19 - IPython/utils/signatures.py
20 - IPython/utils/traitlets.py
@@ -24,13 +24,6 b' addopts = --durations=10'
24 --ignore=IPython/external/qt_for_kernel.py
24 --ignore=IPython/external/qt_for_kernel.py
25 --ignore=IPython/html/widgets/widget_link.py
25 --ignore=IPython/html/widgets/widget_link.py
26 --ignore=IPython/html/widgets/widget_output.py
26 --ignore=IPython/html/widgets/widget_output.py
27 --ignore=IPython/lib/inputhookglut.py
28 --ignore=IPython/lib/inputhookgtk.py
29 --ignore=IPython/lib/inputhookgtk3.py
30 --ignore=IPython/lib/inputhookgtk4.py
31 --ignore=IPython/lib/inputhookpyglet.py
32 --ignore=IPython/lib/inputhookqt4.py
33 --ignore=IPython/lib/inputhookwx.py
34 --ignore=IPython/terminal/console.py
27 --ignore=IPython/terminal/console.py
35 --ignore=IPython/terminal/ptshell.py
28 --ignore=IPython/terminal/ptshell.py
36 --ignore=IPython/utils/_process_cli.py
29 --ignore=IPython/utils/_process_cli.py
@@ -39,5 +32,16 b' addopts = --durations=10'
39 --ignore=IPython/utils/_process_win32_controller.py
32 --ignore=IPython/utils/_process_win32_controller.py
40 --ignore=IPython/utils/daemonize.py
33 --ignore=IPython/utils/daemonize.py
41 --ignore=IPython/utils/eventful.py
34 --ignore=IPython/utils/eventful.py
35
36 --ignore=IPython/kernel
37 --ignore=IPython/consoleapp.py
38 --ignore=IPython/core/inputsplitter.py
39 --ignore-glob=IPython/lib/inputhook*.py
40 --ignore=IPython/lib/kernel.py
41 --ignore=IPython/utils/jsonutil.py
42 --ignore=IPython/utils/localinterfaces.py
43 --ignore=IPython/utils/log.py
44 --ignore=IPython/utils/signatures.py
45 --ignore=IPython/utils/traitlets.py
42 doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS
46 doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS
43 ipdoctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS
47 ipdoctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS
General Comments 0
You need to be logged in to leave comments. Login now