diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-12-12 22:07:40 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-12-12 22:07:40 (GMT) |
commit | 56668dc187d9b77b76c8906a8e23198314aec18a (patch) | |
tree | ff4d14eb004be7beb0d2434d943576603ded0e56 /Lib/test/test_sys.py | |
parent | 4b6d4b56d3336c051531fb4716ab23d5721ad1f3 (diff) | |
download | cpython-56668dc187d9b77b76c8906a8e23198314aec18a.zip cpython-56668dc187d9b77b76c8906a8e23198314aec18a.tar.gz cpython-56668dc187d9b77b76c8906a8e23198314aec18a.tar.bz2 |
Issue #19751: Fix hash_info test of test_sys on SPARC Solaris
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | 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 index 2c3fdfb..9b11f58 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) |