]> granicus.if.org Git - python/commitdiff
backport of 64096
authorBenjamin Peterson <benjamin@python.org>
Tue, 10 Jun 2008 22:39:25 +0000 (22:39 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 10 Jun 2008 22:39:25 +0000 (22:39 +0000)
Lib/test/test_platform.py

index a19556db194e530fbd5f94d13559f7feccbc0742..265c5272df4889174d3bae09d2f1020e44c1dd57 100644 (file)
@@ -72,7 +72,7 @@ class PlatformTest(unittest.TestCase):
         else:
             have_toolbox_glue = True
 
-        if have_toolbox_glue and os.uname()[0] == 'Darwin':
+        if have_toolbox_glue and platform.uname()[0] == 'Darwin':
             # We're on a MacOSX system, check that
             # the right version information is returned
             fd = os.popen('sw_vers', 'r')