From f71e316aefcdcbee11a88f680a90f66a53c8848e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Althviz=20Mor=C3=A9?= <16781833+dalthviz@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:43:33 -0500 Subject: [PATCH] Testing --- .github/workflows/linux-tests.yml | 2 +- qtconsole/tests/test_00_console_widget.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux-tests.yml b/.github/workflows/linux-tests.yml index 5a6225d7..c3dd805e 100644 --- a/.github/workflows/linux-tests.yml +++ b/.github/workflows/linux-tests.yml @@ -75,7 +75,7 @@ jobs: uses: aganders3/headless-gui@v2 with: shell: bash -l {0} - run: pytest -vv -s --full-trace --color=yes --cov=qtconsole qtconsole + run: pytest -vv -s --color=yes --cov=qtconsole qtconsole env: QT_API: ${{ matrix.QT_LIB }} PYTEST_QT_API: ${{ matrix.QT_LIB }} diff --git a/qtconsole/tests/test_00_console_widget.py b/qtconsole/tests/test_00_console_widget.py index e3afbff4..9540e41e 100644 --- a/qtconsole/tests/test_00_console_widget.py +++ b/qtconsole/tests/test_00_console_widget.py @@ -169,8 +169,7 @@ def run_line(line, block=True): prev_position = scroll_bar.maximum() - (scroll_bar.pageStep() * 8) // 10 scroll_bar.setValue(prev_position) - qtbot.wait(1000) - assert scroll_bar.value() > prev_position + qtbot.waitUntil(lambda: scroll_bar.value() > prev_position) @flaky(max_runs=3)