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
I have to say - these package tests are amazing! Congratulations on compiling such a thorough test suite over the years.
I tried running the package tests (using runtest.py). I get several errors, but it probably makes more sense to deal with each one separately, so that's what I'm doing. (See #17057 and #17058 for the first two errors; this is the third one.)
What steps reproduce the problem?
Here's an attempt at running just these tests; the output from runtests.py is essentially identical. I ran it inside a chroot with only the listed requirements (plus git, which was needed but not listed) installed. The run shown here is from running the test file separately; the results are basically identical. There is no difference if I run it outside the chroot.
(sid):~/debian/spyder-packages/spyder/build-area/spyder-5.2.0+dfsg1 $ xvfb-run -a -s "-screen 0 1024x768x24 +extension GLX" python3.9 -m pytest spyder/plugins/editor/panels/tests/test_scrollflag.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 4 items
spyder/plugins/editor/panels/tests/test_scrollflag.py .sF. [100%]
=================================== FAILURES ===================================
__________________ test_range_indicator_visible_on_hover_only __________________
editor_bot = <spyder.plugins.editor.widgets.codeeditor.CodeEditor object at 0x7f54a6445c10>
qtbot = <pytestqt.qtbot.QtBot object at 0x7f54a6454d90>
@pytest.mark.skipif(running_in_ci(), reason="Fails on CIs")
def test_range_indicator_visible_on_hover_only(editor_bot, qtbot):
"""Test that the slider range indicator is visible only when hovering
over the scrollflag area when the editor vertical scrollbar is visible.
The scrollflag area should remain hidden at all times when the editor
vertical scrollbar is not visible."""
editor = editor_bot
sfa = editor.scrollflagarea
editor.show()
# Set a short text in the editor and assert that the slider is not visible.
editor.set_text(short_code)
editor.resize(450, 150)
qtbot.waitUntil(lambda: not sfa.slider)
# Move the mouse cursor to the center of the scrollflagarea and assert
# that the slider range indicator remains hidden. The slider range
# indicator should remains hidden at all times when the vertical scrollbar
# of the editor is not visible.
x = int(sfa.width()/2)
y = int(sfa.height()/2)
qtbot.mouseMove(sfa, pos=QPoint(x, y), delay=-1)
assert sfa._range_indicator_is_visible is False
# Set a long text in the editor and assert that the slider is visible.
editor.set_text(long_code)
editor.resize(450, 150)
qtbot.waitUntil(lambda: sfa.slider)
# Move the mouse cursor to the center of the scrollflagarea and assert
# that the slider range indicator is now shown. When the vertical scrollbar
# of the editor is visible, the slider range indicator should be visible
# only when the mouse cursor hover above the scrollflagarea.
x = int(sfa.width()/2)
y = int(sfa.height()/2)
qtbot.mouseMove(sfa, pos=QPoint(x, y), delay=-1)
> assert sfa._range_indicator_is_visible is True
E assert False is True
E + where False = <spyder.plugins.editor.panels.scrollflag.ScrollFlagArea object at 0x7f54a643c700>._range_indicator_is_visible
spyder/plugins/editor/panels/tests/test_scrollflag.py:189: AssertionError
=========================== short test summary info ============================
FAILED spyder/plugins/editor/panels/tests/test_scrollflag.py::test_range_indicator_visible_on_hover_only
==================== 1 failed, 2 passed, 1 skipped in 1.28s ====================
So clearly there's some sort of problem here, but I don't know enough about the innards of Spyder to be able to diagnose further.
What is the expected output? What do you see instead?
I expect the test to 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
Dependencies
(The Debian version has removed pyqt5 and pyqtwebengine from the list of dependencies as we are using a newer version of these; 5.13 is very old indeed.)
OK, that's interesting. It's marked as failing when running in a CI environment, so setting CI=true causes the test to be skipped. But when I'm not running in a CI and I just run python3.9 -m pytest spyder/plugins/editor/panels/tests/test_scrollflag.py (with no xvfb), it still fails in the same way.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
I have to say - these package tests are amazing! Congratulations on compiling such a thorough test suite over the years.
I tried running the package tests (using runtest.py). I get several errors, but it probably makes more sense to deal with each one separately, so that's what I'm doing. (See #17057 and #17058 for the first two errors; this is the third one.)
What steps reproduce the problem?
Here's an attempt at running just these tests; the output from runtests.py is essentially identical. I ran it inside a chroot with only the listed requirements (plus git, which was needed but not listed) installed. The run shown here is from running the test file separately; the results are basically identical. There is no difference if I run it outside the chroot.
So clearly there's some sort of problem here, but I don't know enough about the innards of Spyder to be able to diagnose further.
What is the expected output? What do you see instead?
I expect the test to pass.
Versions
Dependencies
(The Debian version has removed pyqt5 and pyqtwebengine from the list of dependencies as we are using a newer version of these; 5.13 is very old indeed.)
The text was updated successfully, but these errors were encountered: