Issue 19463: assertGdbRepr depends on hash randomization / endianess (original) (raw)

I'm seeing some unrelated test failures on PPC Linux (big endian) in my PEP-456 branch.

http://buildbot.python.org/all/builders/PPC64%20PowerLinux%20custom/builds/17/steps/test/logs/stdio

====================================================================== FAIL: test_frozensets (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of frozensets

Traceback (most recent call last): File "/home/shager/cpython-buildarea/custom.edelsohn-powerlinux-ppc64/build/Lib/test/test_gdb.py", line 331, in test_frozensets self.assertGdbRepr(frozenset(['a', 'b']), "frozenset({'a', 'b'})") File "/home/shager/cpython-buildarea/custom.edelsohn-powerlinux-ppc64/build/Lib/test/test_gdb.py", line 231, in assertGdbRepr % (gdb_repr, exp_repr, gdb_output))) AssertionError: "frozenset({'b', 'a'})" != "frozenset({'a', 'b'})"

====================================================================== FAIL: test_sets (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of sets

Traceback (most recent call last): File "/home/shager/cpython-buildarea/custom.edelsohn-powerlinux-ppc64/build/Lib/test/test_gdb.py", line 316, in test_sets self.assertGdbRepr(set(['a', 'b']), "{'a', 'b'}") File "/home/shager/cpython-buildarea/custom.edelsohn-powerlinux-ppc64/build/Lib/test/test_gdb.py", line 231, in assertGdbRepr % (gdb_repr, exp_repr, gdb_output))) AssertionError: "{'b', 'a'}" != "{'a', 'b'}"