]> granicus.if.org Git - python/commitdiff
Add sensible information about the OS X platform to diagnose issue #8423:
authorFlorent Xicluna <florent.xicluna@gmail.com>
Thu, 13 May 2010 17:05:29 +0000 (17:05 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Thu, 13 May 2010 17:05:29 +0000 (17:05 +0000)
test_pep277 fails on "x86 Tiger" buildbot but not on "PPC Tiger".

Lib/test/regrtest.py

index a4139d313dfe617be4b29855518ba2f9e1b1449d..6e024e96acb9b758a63a33886717daff523324ae 100755 (executable)
@@ -426,7 +426,12 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
         # Print basic platform information
         print "==", platform.python_implementation(), \
                     " ".join(sys.version.split())
-        print "==  ", platform.platform(aliased=True)
+        print "==  ", platform.platform(aliased=True), \
+                      "%s-endian" % sys.byteorder,
+        if sys.platform == 'darwin':
+            print platform.mac_ver()
+        else:
+            print
         print "==  ", os.getcwd()
 
     alltests = findtests(testdir, stdtests, nottests)