From: Victor Stinner Date: Thu, 12 Dec 2013 22:07:40 +0000 (+0100) Subject: Issue #19751: Fix hash_info test of test_sys on SPARC Solaris X-Git-Tag: v3.4.0b2~247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56668dc187d9b77b76c8906a8e23198314aec18a;p=thirdparty%2FPython%2Fcpython.git Issue #19751: Fix hash_info test of test_sys on SPARC Solaris --- diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 2c3fdfb5c176..9b11f58f8d45 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -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)