]> granicus.if.org Git - python/commitdiff
Fix test_hash on "SPARC Solaris 10 (cc%2C 64b) [SB] 3.x" buildbot
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 1 Feb 2014 03:30:48 +0000 (04:30 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 1 Feb 2014 03:30:48 +0000 (04:30 +0100)
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

Lib/test/test_hash.py

index 69c169fc6c9585749d6b0f3de385ebe33d60a8a7..86872447ad6e203c966a5fd7745f28d6395edf4b 100644 (file)
@@ -233,7 +233,8 @@ class StringlikeHashRandomizationTests(HashRandomizationTests):
             [44402817, 8998297579845987431, -1956240331,
              -782697888614047887],
             # seed 42, 'äú∑ℇ'
-            [-283066365, -4576729883824601543, -271871407, None],
+            [-283066365, -4576729883824601543, -271871407,
+             -3927695501187247084],
         ]
     }