diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-18 13:25:49 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-18 13:25:49 -0500 |
commit | 8d60d392c5d9b00560c4a9418902f12126dae125 (patch) | |
tree | c6634c5c0b940a32c1fb0afb36b4a928a91f3304 /tests/osinfo.py | |
parent | 0d0836309b6354a07fb09cd8d28b309b6c8dba6c (diff) | |
download | python-coveragepy-git-8d60d392c5d9b00560c4a9418902f12126dae125.tar.gz |
Collect all the nudgy environment checks into coverage.env
Diffstat (limited to 'tests/osinfo.py')
-rw-r--r-- | tests/osinfo.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/osinfo.py b/tests/osinfo.py index a123123c..0b86ef54 100644 --- a/tests/osinfo.py +++ b/tests/osinfo.py @@ -1,8 +1,9 @@ """OS information for testing.""" -import sys +from coverage import env -if sys.platform == 'win32': + +if env.WINDOWS: # Windows implementation def process_ram(): """How much RAM is this process using? (Windows)""" @@ -34,7 +35,7 @@ if sys.platform == 'win32': return 0 return mem_struct.PrivateUsage -elif sys.platform == 'linux2': +elif env.LINUX: # Linux implementation import os |