-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Report fails to render with pytest-xdist (1) #591
Conversation
IMHO the WorkerController is an implementation detail and of little to no value to users, so I don't see an advantage in serializing it. 👍 |
By extension then, I guess there's no point in passing it in the JSON to the report either? (invalidating solution 3 #593 ) |
Possibly, but more investigation would be needed. |
I think it's safe to keep it out of the report. It wasn't part of the legacy report afaict. And if someone has a use case for having it, we can re-add it easily. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is lossy in the face of valid extensions, os i recommend against it
Fixed by: #598 |
The reason why the report fails to render when running with
pytest-xdist
, is that it adds anode
attribute with aWorkerController
object as its value.This object is unserializable, so it fails when trying to convert the test data to JSON.
This is proposed solution 1.
Solution 2: #592
Solution 3: #593
There's also the option of making the WorkerController class serializable upstream. Ping @nicoddemus