summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_platform.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-07-13 22:05:31 (GMT)
committerNed Deily <nad@acm.org>2011-07-13 22:05:31 (GMT)
commit0ab67ee79ea6c536168b9ae51af0a85c9b075a40 (patch)
tree88a82f99e7ad0a461b08ab86342e99a72b8ec70a /Lib/test/test_platform.py
parentbf547fd3f255430bb32916b9949f1f8e72aee951 (diff)
downloadcpython-0ab67ee79ea6c536168b9ae51af0a85c9b075a40.zip
cpython-0ab67ee79ea6c536168b9ae51af0a85c9b075a40.tar.gz
cpython-0ab67ee79ea6c536168b9ae51af0a85c9b075a40.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 1ae5888..941d428 100644
--- a/Lib/test/test_platform.py
+++ b/Lib/test/test_platform.py
@@ -191,7 +191,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')