how to share rich.progress in pytest with xdist? #3728
-
running the below in pytest works as expected but when using it with xdist (pytest -n auto) the progress bars are run one over the other. debug it shows that each time i use add_task, it returns id 0 instead of incriminating it.
please help |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
May 8, 2025
Replies: 1 comment
-
There is only a single stdout on a process. So running on multiple processes is going to break things. A solution would be to create a Console, where |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
megetron3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is only a single stdout on a process. So running on multiple processes is going to break things.
A solution would be to create a Console, where
file=io.StringIO()
, so the output goes to memory.