[Python-checkins] cpython: Issue #19751: Fix hash_info test of test_sys on SPARC Solaris

victor.stinner python-checkins at python.org
Thu Dec 12 23:13:27 CET 2013


http://hg.python.org/cpython/rev/c1a7ba57b4ff
changeset:   87915:c1a7ba57b4ff
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu Dec 12 23:07:40 2013 +0100
summary:
  Issue #19751: Fix hash_info test of test_sys on SPARC Solaris

files:
  Lib/test/test_sys.py |  6 +-----
  1 files changed, 1 insertions(+), 5 deletions(-)


diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -457,11 +457,7 @@
             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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list