Commit 31570f0a authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

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

parent 961d6e1c
...@@ -65,7 +65,7 @@ class PlatformTest(unittest.TestCase): ...@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment