oberstet/Autobahn — Issue #85: Testsuite pickle comparisons sometimes give wrong result
Author: bdarnell
Created: 2011-12-30 19:41:54+00:00
State: open

In case.py, results are compared with ``pickle.dumps(obj1) == pickle.dumps(obj2)``, but equivalent objects are not guaranteed to have equal pickle representations. This is specifically a problem with the "not strict" cases for the 6.4.* utf8 fail-fast tests. For some reason (related to string interning I guess), there are two distinct "timeout" string objects on one side, and two references to the same string on the other. I changed the comparison to a simple ``obj1 == obj2`` and the server I'm testing (Tornado) went from "fail" to "not strict" on these tests.