diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-13 17:21:58 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-13 17:21:58 -0500 |
commit | 9fad1bddd3d162013f1248d3ba1fa93bacea5a7b (patch) | |
tree | b50cac76a2b61045ccb2c61514adfa3e93762dcc /test/osinfo.py | |
parent | ae8b4485ed5633cf52089aa705f185153023d6c7 (diff) | |
download | python-coveragepy-9fad1bddd3d162013f1248d3ba1fa93bacea5a7b.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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/osinfo.py b/test/osinfo.py index 8bed2af..04855fe 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)""" |