summaryrefslogtreecommitdiff
path: root/test/osinfo.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-13 17:21:58 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-13 17:21:58 -0500
commit5e5c26966ee3d75c17ca33c9d49f8926aefe735b (patch)
tree96e9e9a8550523a6ade00967c823f875d207e330 /test/osinfo.py
parent9e134e3f40f34a560860efdb48874f8332629ba4 (diff)
downloadpython-coveragepy-git-5e5c26966ee3d75c17ca33c9d49f8926aefe735b.tar.gz
version_info is a nicer way to check Python versions than hexversion is.
Diffstat (limited to 'test/osinfo.py')
-rw-r--r--test/osinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/osinfo.py b/test/osinfo.py
index 8bed2afd..04855fe6 100644
--- a/test/osinfo.py
+++ b/test/osinfo.py
@@ -2,7 +2,7 @@
import sys
-if sys.hexversion >= 0x02050000 and sys.platform == 'win32':
+if sys.version_info >= (2, 5) and sys.platform == 'win32':
# Windows implementation
def process_ram():
"""How much RAM is this process using? (Windows)"""