summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_platform.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-07-13 22:07:04 (GMT)
committerNed Deily <nad@acm.org>2011-07-13 22:07:04 (GMT)
commit58e3350bd48d59c273e320c408f2546e6d09146e (patch)
tree5c7f3620994e92b7860c718b7bda21ba6e2a1e69 /Lib/test/test_platform.py
parent6636121950a08de9d437cc2d76ac272cdceb7ecc (diff)
downloadcpython-58e3350bd48d59c273e320c408f2546e6d09146e.zip
cpython-58e3350bd48d59c273e320c408f2546e6d09146e.tar.gz
cpython-58e3350bd48d59c273e320c408f2546e6d09146e.tar.bz2
Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
as the processor type on some Mac systems. Also fix NameError in fallback _mac_ver_gestalt function. And remove out-of-date URL in docs.
Diffstat (limited to 'Lib/test/test_platform.py')
-rw-r--r--Lib/test/test_platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py
index ec134a1..8751aa8 100644
--- a/Lib/test/test_platform.py
+++ b/Lib/test/test_platform.py
@@ -194,7 +194,7 @@ class PlatformTest(unittest.TestCase):
self.assertEqual(res[1], ('', '', ''))
if sys.byteorder == 'little':
- self.assertEqual(res[2], 'i386')
+ self.assertIn(res[2], ('i386', 'x86_64'))
else:
self.assertEqual(res[2], 'PowerPC')