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