[Python-3000-checkins] r64096 - python/branches/py3k/Lib/test/test_platform.py
amaury.forgeotdarc
python-3000-checkins at python.org
Tue Jun 10 23:44:59 CEST 2008
Author: amaury.forgeotdarc
Date: Tue Jun 10 23:44:58 2008
New Revision: 64096
Log:
Windows has no os.uname. Use platform.uname() instead.
Modified:
python/branches/py3k/Lib/test/test_platform.py
Modified: python/branches/py3k/Lib/test/test_platform.py
==============================================================================
--- python/branches/py3k/Lib/test/test_platform.py (original)
+++ python/branches/py3k/Lib/test/test_platform.py Tue Jun 10 23:44:58 2008
@@ -65,7 +65,7 @@
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')
More information about the Python-3000-checkins
mailing list