This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: assertGdbRepr depends on hash randomization / endianess
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, dmalcolm, pitrou, vstinner
Priority: normal Keywords: buildbot

Created on 2013-10-31 18:53 by christian.heimes, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg201841 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-10-31 18:53
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'})"
- 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'}"
- {'b', 'a'}
+ {'a', 'b'}
msg206737 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2013-12-21 14:05
Also on System Z:

http://buildbot.python.org/all/builders/System%20Z%20Linux%203.x/builds/1009/steps/test/logs/stdio

Setting priority to "normal", since it's the only test failing on
System Z and generally green buildbots are more useful.
msg206740 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-12-21 14:08
Oh, I didn't notice this issue. I created the duplicate #19753 and I did some changes to try to fix it.
msg206742 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-12-21 14:10
When trying to workaround a bug in the implementation of the PEP 456 (which was not known as a bug at this time), I implemented something using subprocessing which may be reused on SystemZ (or maybe on all platforms):

changeset:   87290:11cb1c8faf11
user:        Victor Stinner <victor.stinner@gmail.com>
date:        Wed Nov 20 12:27:48 2013 +0100
files:       Lib/test/test_gdb.py
description:
Issue #19183: Fix repr() tests of test_gdb, hash() is now platform dependent
msg206772 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-12-21 19:41
> http://buildbot.python.org/all/builders/System%20Z%20Linux%203.x/builds/1009/steps/test/logs/stdio

This is a different issue than the one reported here.

I'm not seeing any recent failures on "PPC64 PowerLinux 3.x". Christian, can we close?
History
Date User Action Args
2022-04-11 14:57:52adminsetgithub: 63662
2021-09-10 18:19:07iritkatrielsetstatus: open -> closed
resolution: fixed
stage: needs patch -> resolved
2014-05-22 21:55:29skrahsetnosy: - skrah
2013-12-21 19:41:47pitrousetnosy: + pitrou
messages: + msg206772
2013-12-21 14:10:21vstinnersetmessages: + msg206742
2013-12-21 14:08:38vstinnersetnosy: + vstinner
messages: + msg206740
2013-12-21 14:05:30skrahsetpriority: low -> normal

nosy: + dmalcolm, skrah
messages: + msg206737

keywords: + buildbot
2013-10-31 18:53:22christian.heimescreate