Windows has no os.uname. Use platform.uname() instead.

This commit is contained in:
Amaury Forgeot d'Arc 2008-06-10 21:44:58 +00:00
parent 283a7c9656
commit 3b409276b7
1 changed files with 1 additions and 1 deletions

View File

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