File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/python/plotly/plotly/tests/test_io Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ def test_plotly_mimetype_renderer_show(fig1, renderer):
126
126
# ------------
127
127
# See plotly/tests/test_orca/test_image_renderers.py
128
128
129
+
129
130
# HTML
130
131
# ----
131
132
def assert_full_html (html ):
@@ -387,17 +388,20 @@ def test_missing_webbrowser_module(fig1):
387
388
"""
388
389
Assert that no errors occur if the webbrowser module is absent
389
390
"""
390
- removed_webbrowser_module = sys .modules [' webbrowser' ]
391
- del sys .modules [' webbrowser' ]
391
+ removed_webbrowser_module = sys .modules [" webbrowser" ]
392
+ del sys .modules [" webbrowser" ]
392
393
fig1 ._repr_html_ ()
393
- sys .modules ['webbrowser' ] = removed_webbrowser_module # restore everything after this test
394
+ sys .modules [
395
+ "webbrowser"
396
+ ] = removed_webbrowser_module # restore everything after this test
394
397
395
398
396
399
def test_missing_webbrowser_methods (fig1 ):
397
400
"""
398
401
Assert that no errors occur if the webbrowser module does not contain some methods
399
402
"""
400
403
import webbrowser
404
+
401
405
removed_webbrowser_get_method = webbrowser .get
402
406
del webbrowser .get
403
407
fig1 ._repr_html_ ()
You can’t perform that action at this time.
0 commit comments