You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
OK, now I'm running the tests with CI=true, I've only got 20(!) failing tests and one segfault.... Several of those seem to be because I have a different setup from your CI one, so I'm not worried about those. Anyway, this is the next one after #17059 and #17060. It is test_load_time in spyder/plugins/maininterpreter/tests/test_confpage.py, and I don't know what might be causing it.
What steps reproduce the problem?
(sid):~/debian/spyder-packages/spyder/build-area/spyder-5.2.0+dfsg1 $ CI=true xvfb-run -a -s "-screen 0 1024x768x24 +extension GLX" python3.9 -m pytest spyder/plugins/maininterpreter/tests/test_confpage.py
============================= test session starts ==============================
platform linux -- Python 3.9.9, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
PyQt5 5.15.6 -- Qt runtime 5.15.2 -- Qt compiled 5.15.2
rootdir: /home/jdg/debian/spyder-packages/spyder/build-area/spyder-5.2.0+dfsg1, configfile: pytest.ini
plugins: typeguard-2.11.1, 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 1 item
spyder/plugins/maininterpreter/tests/test_confpage.py F [100%]
=================================== FAILURES ===================================
________________________________ test_load_time ________________________________
qtbot = <pytestqt.qtbot.QtBot object at 0x7f2eb2aab790>
def test_load_time(qtbot):
from spyder.plugins.maininterpreter.confpage import (
MainInterpreterConfigPage)
# Create Preferences dialog
main = MainWindowMock()
preferences = main.get_plugin(Plugins.Preferences)
main_interpreter = PLUGIN_REGISTRY.register_plugin(main, MainInterpreter)
# Create page and measure time to do it
t0 = time.time()
preferences.open_dialog(None)
load_time = time.time() - t0
container = preferences.get_container()
dlg = container.dialog
widget = dlg.get_page()
# Assert the combobox is populated with the found envs
> assert widget.cus_exec_combo.combobox.count() > 0
E assert 0 > 0
E + where 0 = <built-in method count of FileComboBox object at 0x7f2eb0066dc0>()
E + where <built-in method count of FileComboBox object at 0x7f2eb0066dc0> = <spyder.widgets.comboboxes.FileComboBox object at 0x7f2eb0066dc0>.count
E + where <spyder.widgets.comboboxes.FileComboBox object at 0x7f2eb0066dc0> = <PyQt5.QtWidgets.QWidget object at 0x7f2eb0066ca0>.combobox
E + where <PyQt5.QtWidgets.QWidget object at 0x7f2eb0066ca0> = <spyder.plugins.maininterpreter.confpage.MainInterpreterConfigPage object at 0x7f2eb08b6940>.cus_exec_combo
spyder/plugins/maininterpreter/tests/test_confpage.py:53: AssertionError
----------------------------- Captured Qt messages -----------------------------
QtWarningMsg: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-jdg'
=========================== short test summary info ============================
FAILED spyder/plugins/maininterpreter/tests/test_confpage.py::test_load_time
============================== 1 failed in 1.05s ===============================
The same occurs whether I'm in a chroot or not, and whether I use xvfb or not (though I don't get the XDG_RUNTIME_DIR warning when running in my regular environment).
What is the expected output? What do you see instead?
The test should pass.
Versions
Spyder version: 5.2.0
Python version: 3.9 and 3.10
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
OK, now I'm running the tests with
CI=true
, I've only got 20(!) failing tests and one segfault.... Several of those seem to be because I have a different setup from your CI one, so I'm not worried about those. Anyway, this is the next one after #17059 and #17060. It istest_load_time
inspyder/plugins/maininterpreter/tests/test_confpage.py
, and I don't know what might be causing it.What steps reproduce the problem?
The same occurs whether I'm in a chroot or not, and whether I use
xvfb
or not (though I don't get theXDG_RUNTIME_DIR
warning when running in my regular environment).What is the expected output? What do you see instead?
The test should pass.
Versions
Dependencies
The text was updated successfully, but these errors were encountered: