[Python-checkins] cpython: Fix test_hash on "SPARC Solaris 10 (cc%2C 64b) [SB] 3.x" buildbot

victor.stinner python-checkins at python.org
Sat Feb 1 04:30:59 CET 2014


http://hg.python.org/cpython/rev/22e88355acd6
changeset:   88881:22e88355acd6
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Feb 01 04:30:48 2014 +0100
summary:
  Fix test_hash on "SPARC Solaris 10 (cc%2C 64b) [SB] 3.x" buildbot

I picked the value from the error message:

======================================================================
FAIL: test_ucs2_string (test.test_hash.StrHashRandomizationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/test_hash.py", line 292, in test_ucs2_string
    self.assertEqual(self.get_hash(self.repr_ucs2, seed=42), h)
AssertionError: -3927695501187247084 != None

files:
  Lib/test/test_hash.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py
--- a/Lib/test/test_hash.py
+++ b/Lib/test/test_hash.py
@@ -233,7 +233,8 @@
             [44402817, 8998297579845987431, -1956240331,
              -782697888614047887],
             # seed 42, 'äú∑ℇ'
-            [-283066365, -4576729883824601543, -271871407, None],
+            [-283066365, -4576729883824601543, -271871407,
+             -3927695501187247084],
         ]
     }
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list