Skip to content

Commit

Permalink
Merge pull request #16856 from ccordoba12/fix-tests
Browse files Browse the repository at this point in the history
PR: Don't use Matplotlib in a test to prevent hangs
  • Loading branch information
ccordoba12 committed Nov 18, 2021
2 parents f3fe96c + 717f577 commit 097ef9c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions spyder/app/tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,16 +694,13 @@ def test_get_help_ipython_console(main_window, qtbot):

@pytest.mark.slow
@flaky(max_runs=3)
@pytest.mark.skipif(
not sys.platform.startswith('linux') or
(sys.platform.startswith('linux') and os.environ.get('USE_CONDA') == 'false'),
reason="Does not work on Mac and Windows!")
@pytest.mark.skipif(not sys.platform.startswith('linux'),
reason="Does not work on Mac and Windows!")
@pytest.mark.use_introspection
@pytest.mark.parametrize(
"object_info",
[("range", "range"),
("import matplotlib.pyplot as plt",
"The object-oriented API is recommended for more complex plots.")])
("import numpy as np", "An array object of arbitrary homogeneous items")])
def test_get_help_editor(main_window, qtbot, object_info):
"""Test that Help works when called from the Editor."""
help_plugin = main_window.help
Expand Down

0 comments on commit 097ef9c

Please sign in to comment.