changeset: 71318:0025ce38fbd0 parent: 71315:30f91fbfc8b3 parent: 71317:d050c8c9a3b3 user: Ned Deily date: Wed Jul 13 15:09:49 2011 -0700 files: Doc/library/platform.rst Lib/platform.py Lib/test/test_platform.py Misc/NEWS description: Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64' as the processor type on some Mac systems. diff -r 30f91fbfc8b3 -r 0025ce38fbd0 Doc/library/platform.rst --- a/Doc/library/platform.rst Wed Jul 13 23:47:21 2011 +0200 +++ b/Doc/library/platform.rst Wed Jul 13 15:09:49 2011 -0700 @@ -232,9 +232,6 @@ Entries which cannot be determined are set to ``''``. All tuple entries are strings. - Documentation for the underlying :c:func:`gestalt` API is available online at - http://www.rgaros.nl/gestalt/. - Unix Platforms -------------- diff -r 30f91fbfc8b3 -r 0025ce38fbd0 Lib/platform.py --- a/Lib/platform.py Wed Jul 13 23:47:21 2011 +0200 +++ b/Lib/platform.py Wed Jul 13 15:09:49 2011 -0700 @@ -679,6 +679,7 @@ 0x2: 'PowerPC', 0xa: 'i386'}.get(sysa,'') + versioninfo=('', '', '') return release,versioninfo,machine def _mac_ver_xml(): diff -r 30f91fbfc8b3 -r 0025ce38fbd0 Lib/test/test_platform.py --- a/Lib/test/test_platform.py Wed Jul 13 23:47:21 2011 +0200 +++ b/Lib/test/test_platform.py Wed Jul 13 15:09:49 2011 -0700 @@ -191,7 +191,7 @@ 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') diff -r 30f91fbfc8b3 -r 0025ce38fbd0 Misc/NEWS --- a/Misc/NEWS Wed Jul 13 23:47:21 2011 +0200 +++ b/Misc/NEWS Wed Jul 13 15:09:49 2011 -0700 @@ -1020,6 +1020,9 @@ Tests ----- +- Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64' + as the processor type on some Mac systems. + - Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary failure in name resolution.

AltStyle によって変換されたページ (->オリジナル) /