From 717f5772b46f87cfe09d1f654f8e88392bbb0e51 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Thu, 18 Nov 2021 11:20:15 -0500 Subject: [PATCH] Testing: Don't use Matplotlib in a test to prevent hangs --- spyder/app/tests/test_mainwindow.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py index 20fd3919611..3a2f2a57e63 100644 --- a/spyder/app/tests/test_mainwindow.py +++ b/spyder/app/tests/test_mainwindow.py @@ -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