diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-06-10 21:44:58 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-06-10 21:44:58 (GMT) |
commit | 3b409276b77de29b82ad4022468bd2b9d312f49d (patch) | |
tree | 9a851c95e3392b6d576c1cfe1a89cf7aaf39a573 | |
parent | 283a7c9656f8d9b53e4c5caa2b7060a91b9c282c (diff) | |
download | cpython-3b409276b77de29b82ad4022468bd2b9d312f49d.zip cpython-3b409276b77de29b82ad4022468bd2b9d312f49d.tar.gz cpython-3b409276b77de29b82ad4022468bd2b9d312f49d.tar.bz2 |
Windows has no os.uname. Use platform.uname() instead.
-rw-r--r-- | Lib/test/test_platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index bc02d1e..8ef34ad 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -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') |