]> granicus.if.org Git - python/commitdiff
Windows has no os.uname. Use platform.uname() instead.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 10 Jun 2008 21:44:58 +0000 (21:44 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 10 Jun 2008 21:44:58 +0000 (21:44 +0000)
Lib/test/test_platform.py

index bc02d1e66cf62f4a145db28f9853b8c2493def89..8ef34ad6174af45e5a697bfc403032149edc534f 100644 (file)
@@ -65,7 +65,7 @@ class PlatformTest(unittest.TestCase):
     def test_mac_ver(self):
         res = platform.mac_ver()
 
-        if os.uname()[0] == 'Darwin':
+        if platform.uname()[0] == 'Darwin':
             # We're on a MacOSX system, check that
             # the right version information is returned
             fd = os.popen('sw_vers', 'r')