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)