summaryrefslogtreecommitdiff
path: root/tests/osinfo.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-01-18 13:25:49 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-01-18 13:25:49 -0500
commit8d60d392c5d9b00560c4a9418902f12126dae125 (patch)
treec6634c5c0b940a32c1fb0afb36b4a928a91f3304 /tests/osinfo.py
parent0d0836309b6354a07fb09cd8d28b309b6c8dba6c (diff)
downloadpython-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.py7
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