mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #19751: Fix hash_info test of test_sys on SPARC Solaris
This commit is contained in:
parent
4b6d4b56d3
commit
56668dc187
1 changed files with 1 additions and 5 deletions
|
@ -457,11 +457,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
elif algo == 2:
|
||||
self.assertEqual(sys.hash_info.algorithm, "fnv")
|
||||
else:
|
||||
processor = platform.processor().lower()
|
||||
if processor in {"sparc", "mips"}:
|
||||
self.assertEqual(sys.hash_info.algorithm, "fnv")
|
||||
else:
|
||||
self.assertEqual(sys.hash_info.algorithm, "siphash24")
|
||||
self.assertIn(sys.hash_info.algorithm, {"fnv", "siphash24"})
|
||||
else:
|
||||
# PY_HASH_EXTERNAL
|
||||
self.assertEqual(algo, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue