summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-05-30 21:35:14 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-05-30 21:35:14 -0400
commit47d82293ac848cc71139d5601dba87818f6d829c (patch)
treeff35d76c01c50e33369520bfb25cddd929ec7f45
parent30c023b5b74f9c798645cbb3f35362ae046a4c25 (diff)
downloadpython-coveragepy-git-47d82293ac848cc71139d5601dba87818f6d829c.tar.gz
build: mark a few lines as not covered
-rw-r--r--metacov.ini1
-rw-r--r--tests/test_process.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/metacov.ini b/metacov.ini
index b4e18e81..bed5f940 100644
--- a/metacov.ini
+++ b/metacov.ini
@@ -77,6 +77,7 @@ partial_branches =
pragma: if failure
pragma: part started
if env.TESTING:
+ if env.METACOV:
if .* env.JYTHON
if .* env.IRONPYTHON
diff --git a/tests/test_process.py b/tests/test_process.py
index 54bf345d..9c695b2a 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -1404,7 +1404,7 @@ def find_writable_pth_directory():
with open(try_it, "w") as f:
try:
f.write("foo")
- except OSError: # pragma: cant happen
+ except OSError: # pragma: cant happen
continue
os.remove(try_it)
@@ -1422,7 +1422,7 @@ def persistent_remove(path):
while tries: # pragma: part covered
try:
os.remove(path)
- except OSError:
+ except OSError: # pragma: not covered
tries -= 1
time.sleep(.05)
else: