Closed vfdev-5 closed 2 months ago
@vfdev-5 thanks for opening this issue, simultaneous printing under free threaded Python leads to stdout to not respect printing output order, if you detail the output trace that you shared, you can see that all the output is being concatenated:
139805692208704139805700601408 139805708994112
This is something that's occurring without this plugin. From what I've experienced, this is the current behavior in CPython.
With respect to the second test executions, it seems like a legit issue. Let me check how pytest collection works
I'm trying this tool to run tests using multi-threaded context: Here is the code I using for a check of multi-threaded execution:
and execute it with the following command:
and I see the following output:
We can see that
test_failed1
printed 3 timestest_failed1+ident
and thread ident but theTestABC::test_failed2
printed current thread ident only once, so I supposed that it ran the test in one thread only and not 3 threads as required in the command.@andfoy can you please check this? Thanks!