use pinpointed handling of non-serializable data#35
use pinpointed handling of non-serializable data#35RonnyPfannschmidt wants to merge 2 commits intopytest-dev:mainfrom
Conversation
|
@RonnyPfannschmidt can you please rebase on |
3e782cf to
d47e1ae
Compare
instead of str this creates a difference in logged data warning messages needed a change instead of toplevel values, only the sub-object is affected
|
@nicoddemus done |
for more information, see https://pre-commit.ci
|
LGTM, let's see what @The-Compiler has to say. |
|
Sorry for the delay, just came back from Berlin for yet another pytest company training on Saturday 😅 Just dug into the git history of the project where this happened to me, and I basically accidentally serialized a set instead of a list. I suppose this behavior makes sense. I wonder if a Either way, this seems fine to me. Perhaps "handle unserializable objects with a pinpointed marker" in the changelog should be a bit more specific so people know what to watch out for? |
|
Perhaps a little bikeshedding can help It might also be a good idea to switch from str to safe_repr |
|
Some questions to ponder on:
Probably so someone with previous usage of
I'd say debugging output?
IMHO it would be fine? But I can see there is value in seeing the value (hah) too. |
|
If we switch from str to length limited safe repr, I think we will be fine |
|
@nicoddemus xdist adds report.node but doesnt expand report serialization to turn it into json compatible objects atm |
|
Yes (you probably did not see my edit where I found the reason after the initial post hehehe) |
fixes #12
the caveat is that now we sometimes have magic json objects in the depth of a message to fix the details
this also exposed a bug in warning record message handling that was hidden by the broad str magic