Uplink036 / PickleTestSuite

PickleTestSuite is a rigorous test suite for evaluating the stability and correctness of Python's pickle module across diverse environments, for consistent serialization outcomes for identical inputs.
MIT License
0 stars 0 forks source link

Hashing None #28

Closed Uplink036 closed 4 months ago

Uplink036 commented 4 months ago

Currently our implementation relies on hashing to compare results between versions and OS. However, we are getting assert errors from hash values of the text file we are saving and JSON value we used to get that hash value. This means that we might not be able to test None in a way we'd like.

Uplink036 commented 4 months ago

While trying to fix too identify and fix this bug, we found a problem with test file 303. This is a problem with the list [0, 0.0, "", False"] Which was translated from ' ' which that version of python used.

we are unsure if this is a problem with pickle or json, as we were relying on json, as mentioned above.

Uplink036 commented 4 months ago

Either way, this should be a bug which is worth mentioning as they are the same thing.

Note, the behavior was different when running with pytest and running the terminal.

Uplink036 commented 4 months ago

The issue might just be that tuples are coerced into lists in JSON.