]> granicus.if.org Git - python/commitdiff
Issue #19751: Fix hash_info test of test_sys on SPARC Solaris
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 12 Dec 2013 22:07:40 +0000 (23:07 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 12 Dec 2013 22:07:40 +0000 (23:07 +0100)
Lib/test/test_sys.py

index 2c3fdfb5c1769aa0c0adc4643b59ba2137fe86ea..9b11f58f8d459aa72dbe30174450f88375ab516c 100644 (file)
@@ -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)