Skip to content

Commit

Permalink
Testing: Skip some tests because they time out too much
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Aug 31, 2017
1 parent 23da18a commit da94efc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
13 changes: 7 additions & 6 deletions spyder/app/tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def close_window():
# IMPORTANT NOTE: Please leave this test to be the first one here to
# avoid possible timeouts in Appveyor
@flaky(max_runs=3)
@pytest.mark.skipif(os.name != 'nt' or not PY2,
reason="It times out on Linux and Python 3")
@pytest.mark.skipif(os.environ.get('CI', None) is not None,
reason="It times out in our CIs")
@pytest.mark.timeout(timeout=60, method='thread')
@pytest.mark.use_introspection
def test_calltip(main_window, qtbot):
Expand Down Expand Up @@ -166,6 +166,8 @@ def test_calltip(main_window, qtbot):


@flaky(max_runs=3)
@pytest.mark.skipif(os.environ.get('CI', None) is None,
reason="It's not meant to be run locally")
def test_runconfig_workdir(main_window, qtbot, tmpdir):
"""Test runconfig workdir options."""
CONF.set('run', 'configurations', [])
Expand Down Expand Up @@ -457,8 +459,8 @@ def test_run_cython_code(main_window, qtbot):


@flaky(max_runs=3)
@pytest.mark.skipif(True, #os.name == 'nt' or PYQT_WHEEL,
reason="It times out sometimes on Windows and using PyQt wheels")
@pytest.mark.skipif(os.environ.get('CI', None) is not None,
reason="It times out in our CIs")
def test_open_notebooks_from_project_explorer(main_window, qtbot):
"""Test that notebooks are open from the Project explorer."""
projects = main_window.projects
Expand Down Expand Up @@ -676,8 +678,7 @@ def test_open_files_in_new_editor_window(main_window, qtbot):


@flaky(max_runs=3)
@pytest.mark.skipif(PYQT_WHEEL,
reason="It times out sometimes on PyQt wheels")
@pytest.mark.skipif(PYQT_WHEEL, reason="It times out sometimes on PyQt wheels")
def test_close_when_file_is_changed(main_window, qtbot):
"""Test closing spyder when there is a file with modifications open."""
# Wait until the window is fully up
Expand Down
7 changes: 5 additions & 2 deletions spyder/plugins/tests/test_ipythonconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def close_console():
#==============================================================================
@pytest.mark.parametrize('ipyconsole', [osp.join(TEMP_DIRECTORY, u'測試',
u'اختبار')], indirect=True)
@pytest.mark.skipif(os.name == 'nt', reason="It times out sometimes on Windows")
def test_console_stderr_file(ipyconsole, qtbot):
"""Test a the creation of a console with a stderr file in ascii dir."""
# Wait until the window is fully up
Expand All @@ -102,6 +103,7 @@ def test_console_stderr_file(ipyconsole, qtbot):


@flaky(max_runs=3)
@pytest.mark.skipif(os.name == 'nt', reason="It times out sometimes on Windows")
def test_console_import_namespace(ipyconsole, qtbot):
"""Test an import of the form 'from foo import *'."""
# Wait until the window is fully up
Expand Down Expand Up @@ -309,7 +311,8 @@ def test_read_stderr(ipyconsole, qtbot):


@flaky(max_runs=10)
@pytest.mark.skipif(True, reason="It times out too much (to check later)")
@pytest.mark.skipif(os.environ.get('CI', None) is not None,
reason="It times out in our CIs")
def test_values_dbg(ipyconsole, qtbot):
"""
Test that getting, setting, copying and removing values is working while
Expand Down Expand Up @@ -451,7 +454,7 @@ def test_mpl_backend_change(ipyconsole, qtbot):


@flaky(max_runs=10)
@pytest.mark.skipif(os.name == 'nt', reason="It times out on Windows")
@pytest.mark.skipif(PYQT5, reason="It times out frequently in PyQt5")
def test_ctrl_c_dbg(ipyconsole, qtbot):
"""
Test that Ctrl+C works while debugging
Expand Down

0 comments on commit da94efc

Please sign in to comment.