[ ] Tried the other applicable steps from the Troubleshooting Guide
[x] Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
I'm really hoping this is the last set of test failures with 5.15.2.... It's three tests in spyder/utils/tests/test_programs.py which I'd originally thought might be something to do with my setup, but am now thinking are more likely related to using Python 3.10 and/or Qt 5.15.2.
What steps reproduce the problem?
(sid-minimal)jdg@euler:/build/spyder-jdg/build-area/spyder-5.2.1+dfsg1$ debian/tests/pytest spyder/utils/tests/test_programs.py
Testing with python3.10:
Temporary home directory: /tmp/tmp.AWjR1cLL2o
Pytest Arguments: ['-vv', '-rw', '--durations=10', '-W ignore::UserWarning', '-k', 'not test_get_pydoc and not test_qtbug35861 and not test_find_external_plugins and not test_load_time and not test_objectexplorer_collection_types and not test_pylint.py and not test_object_arrays_display and not test_profiler_config_dialog.py and not test_handle_exception', 'spyder/utils/tests/test_programs.py']
============================= test session starts ==============================
platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
PyQt5 5.15.6 -- Qt runtime 5.15.2 -- Qt compiled 5.15.2
rootdir: /build/spyder-jdg/build-area/spyder-5.2.1+dfsg1, configfile: pytest.ini
plugins: flaky-3.7.0, xvfb-2.0.0, mock-3.6.1, cov-3.0.0, order-1.0.0, qt-4.0.2, lazy-fixture-0.6.3
collected 19 items
spyder/utils/tests/test_programs.py::test_run_python_script_in_terminal_blank_wdir FAILED [ 5%]
spyder/utils/tests/test_programs.py::test_run_python_script_in_terminal_with_wdir_empty FAILED [ 10%]
spyder/utils/tests/test_programs.py::test_is_valid_interpreter PASSED [ 15%]
spyder/utils/tests/test_programs.py::test_is_invalid_interpreter PASSED [ 21%]
spyder/utils/tests/test_programs.py::test_is_valid_interpreter_name PASSED [ 26%]
spyder/utils/tests/test_programs.py::test_is_valid_w_interpreter SKIPPED [ 31%]
spyder/utils/tests/test_programs.py::test_run_python_script_in_terminal FAILED [ 36%]
spyder/utils/tests/test_programs.py::test_find_program PASSED [ 42%]
spyder/utils/tests/test_programs.py::test_shell_split PASSED [ 47%]
spyder/utils/tests/test_programs.py::test_check_version PASSED [ 52%]
spyder/utils/tests/test_programs.py::test_is_module_installed PASSED [ 57%]
spyder/utils/tests/test_programs.py::test_is_module_installed_with_custom_interpreter PASSED [ 63%]
spyder/utils/tests/test_programs.py::test_get_temp_dir_ensure_dir_exists PASSED [ 68%]
spyder/utils/tests/test_programs.py::test_clean_win_application_path PASSED [ 73%]
spyder/utils/tests/test_programs.py::test_get_installed_apps_and_icons PASSED [ 78%]
spyder/utils/tests/test_programs.py::test_parse_linux_desktop_entry PASSED [ 84%]
spyder/utils/tests/test_programs.py::test_open_files_with_application PASSED [ 89%]
spyder/utils/tests/test_programs.py::test_get_package_version PASSED [ 94%]
spyder/utils/tests/test_programs.py::test_get_module_version PASSED [100%]
=================================== FAILURES ===================================
________________ test_run_python_script_in_terminal_blank_wdir _________________
scriptpath_with_blanks = local('/tmp/pytest-of-jdg/pytest-120/test_run_python_script_in_term2/write-done.py')
qtbot = <pytestqt.qtbot.QtBot object at 0x7f5cd8733010>
@flaky(max_runs=3)
@pytest.mark.order(1)
@pytest.mark.skipif(
not running_in_ci() or os.name == 'nt',
reason='Only on CI and not on windows!',
)
def test_run_python_script_in_terminal_blank_wdir(scriptpath_with_blanks,
qtbot):
"""
Test running a Python script in an external terminal when specifying
explicitly the working directory.
"""
# Run the script
outfilepath = osp.join(scriptpath_with_blanks.dirname, 'out.txt')
run_python_script_in_terminal(
scriptpath_with_blanks.strpath, scriptpath_with_blanks.dirname,
'', False, False, '')
> qtbot.waitUntil(lambda: osp.exists(outfilepath), timeout=10000)
E pytestqt.exceptions.TimeoutError: waitUntil timed out in 10000 milliseconds
/build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/utils/tests/test_programs.py:112: TimeoutError
______________ test_run_python_script_in_terminal_with_wdir_empty ______________
scriptpath = local('/tmp/pytest-of-jdg/pytest-120/test_run_python_script_in_term5/write-done.py')
qtbot = <pytestqt.qtbot.QtBot object at 0x7f5cd8784460>
@flaky(max_runs=3)
@pytest.mark.order(1)
@pytest.mark.skipif(
not running_in_ci() or os.name == 'nt',
reason='Only on CI and not on windows!',
)
def test_run_python_script_in_terminal_with_wdir_empty(scriptpath, qtbot):
"""
Test running a Python script in an external terminal without specifying
the working directory.
"""
# Run the script.
if sys.platform == 'darwin':
outfilepath = osp.join(osp.expanduser('~'), 'out.txt')
else:
outfilepath = osp.join(os.getcwd(), 'out.txt')
run_python_script_in_terminal(scriptpath.strpath, '', '', False, False, '')
> qtbot.waitUntil(lambda: osp.exists(outfilepath), timeout=10000)
E pytestqt.exceptions.TimeoutError: waitUntil timed out in 10000 milliseconds
/build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/utils/tests/test_programs.py:137: TimeoutError
______________________ test_run_python_script_in_terminal ______________________
scriptpath = local('/tmp/pytest-of-jdg/pytest-120/test_run_python_script_in_term8/write-done.py')
qtbot = <pytestqt.qtbot.QtBot object at 0x7f5cd879ecb0>
@flaky(max_runs=3)
@pytest.mark.skipif(not running_in_ci(), reason='Only on CI!')
def test_run_python_script_in_terminal(scriptpath, qtbot):
"""
Test running a Python script in an external terminal when specifying
explicitly the working directory.
"""
# Run the script
outfilepath = osp.join(scriptpath.dirname, 'out.txt')
run_python_script_in_terminal(
scriptpath.strpath, scriptpath.dirname, '', False, False, '')
> qtbot.waitUntil(lambda: osp.exists(outfilepath), timeout=10000)
E pytestqt.exceptions.TimeoutError: waitUntil timed out in 10000 milliseconds
/build/spyder-jdg/build-area/spyder-5.2.1+dfsg1/spyder/utils/tests/test_programs.py:88: TimeoutError
[... snip flaky and slowest runs report ...]
============== 3 failed, 15 passed, 1 skipped in 91.87s (0:01:31) ==============
Versions
Spyder version: 5.2.1
Python version: 3.9 and 3.10 (checked with both!)
Qt version: 5.15.2
PyQt version: 5.15.6+dfsg-1+b1
Operating System name/version: Debian testing and unstable
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
I'm really hoping this is the last set of test failures with 5.15.2.... It's three tests in
spyder/utils/tests/test_programs.py
which I'd originally thought might be something to do with my setup, but am now thinking are more likely related to using Python 3.10 and/or Qt 5.15.2.What steps reproduce the problem?
Versions
Dependencies