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):
126126# ------------
127127# See plotly/tests/test_orca/test_image_renderers.py
128128
129+
129130# HTML
130131# ----
131132def assert_full_html (html ):
@@ -387,17 +388,20 @@ def test_missing_webbrowser_module(fig1):
387388 """
388389 Assert that no errors occur if the webbrowser module is absent
389390 """
390- removed_webbrowser_module = sys .modules [' webbrowser' ]
391- del sys .modules [' webbrowser' ]
391+ removed_webbrowser_module = sys .modules [" webbrowser" ]
392+ del sys .modules [" webbrowser" ]
392393 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
394397
395398
396399def test_missing_webbrowser_methods (fig1 ):
397400 """
398401 Assert that no errors occur if the webbrowser module does not contain some methods
399402 """
400403 import webbrowser
404+
401405 removed_webbrowser_get_method = webbrowser .get
402406 del webbrowser .get
403407 fig1 ._repr_html_ ()
You can’t perform that action at this time.
0 commit comments