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.
This commit is contained in:
Ned Deily 2011-07-13 15:07:04 -07:00
parent 6636121950
commit 58e3350bd4
4 changed files with 5 additions and 4 deletions

View file

@ -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')