Skip to content

how to share rich.progress in pytest with xdist? #3728

Answered by willmcgugan
megetron3 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by megetron3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants