Commit a3d861a9 authored by Victor Stinner's avatar Victor Stinner

Issue #19751: Fix hash_info test of test_sys on SPARC Solaris

parent 68c0d497
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment