Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c0942425
Commit
c0942425
authored
Feb 22, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix (presumably) test_hash under big-endian systems (PPC).
parent
4f22a8d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Lib/test/test_hash.py
Lib/test/test_hash.py
+8
-2
No files found.
Lib/test/test_hash.py
View file @
c0942425
...
...
@@ -170,9 +170,15 @@ class StringlikeHashRandomizationTests(HashRandomizationTests):
# test a fixed seed for the randomized hash
# Note that all types share the same values:
if
IS_64BIT
:
if
sys
.
byteorder
==
'little'
:
h
=
-
4410911502303878509
else
:
h
=
-
3570150969479994130
else
:
if
sys
.
byteorder
==
'little'
:
h
=
-
206076799
else
:
h
=
-
1024014457
self
.
assertEqual
(
self
.
get_hash
(
self
.
repr_
,
seed
=
42
),
h
)
class
StrHashRandomizationTests
(
StringlikeHashRandomizationTests
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment