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
Running tests in parallel with tox p fails, meaning I have to run all local test envs serially right now. It seems that the detected terminal environment is different in parallel mode, causing the pager tests to fail.
FAILED tests/test_utils.py::test_echo_via_pager[test0-cat] - AssertionError: Unexpected pager output in test case 'Plain string argument'
It worked until the changes to the pager, and only fail on the pager test. I made sure everything ran correctly with tox p in all projects, it makes pre-checking a PR way faster.
Running tests in parallel with tox p fails, meaning I have to run all local test envs serially right now. It seems that the detected terminal environment is different in parallel mode, causing the pager tests to fail.
FAILED tests/test_utils.py::test_echo_via_pager[test0-cat] - AssertionError: Unexpected pager output in test case 'Plain string argument'
This part has been already fixed by #3238 which is available in Click 8.3.3.
Seems like the isolated_filesystem() would not be thread safe.
It is not. So I move this concern to a dedicated issue at: #3501
That way this current issue can be marked as closed and addressed in Click 8.4.2 once #3499 is merged, as it will make the tests properly running in parallels, as the original issue suggested.
Activity
Rowlando13 commentedon May 12, 2025
Shouldn't it fail? Don't some test s use click's testing which is not thread safe.
davidism commentedon May 12, 2025
It worked until the changes to the pager, and only fail on the pager test. I made sure everything ran correctly with
tox pin all projects, it makes pre-checking a PR way faster.Rowlando13 commentedon May 12, 2025
I agree. What did you do? I was just planning on looking some tests
Rowlando13 commentedon May 12, 2025
There are multiple instances of this:
Seems like the
isolated_filesystem()would not be thread safe.davidism commentedon May 22, 2026
Seems to work now.
kdeldycke commentedon May 22, 2026
This part has been already fixed by #3238 which is available in Click 8.3.3.
kdeldycke commentedon May 22, 2026
It is not. So I move this concern to a dedicated issue at: #3501
That way this current issue can be marked as closed and addressed in Click 8.4.2 once #3499 is merged, as it will make the tests properly running in parallels, as the original issue suggested.
Fix pager test race by raising before yield