diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-30 21:35:14 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-30 21:35:14 -0400 |
commit | 47d82293ac848cc71139d5601dba87818f6d829c (patch) | |
tree | ff35d76c01c50e33369520bfb25cddd929ec7f45 | |
parent | 30c023b5b74f9c798645cbb3f35362ae046a4c25 (diff) | |
download | python-coveragepy-git-47d82293ac848cc71139d5601dba87818f6d829c.tar.gz |
build: mark a few lines as not covered
-rw-r--r-- | metacov.ini | 1 | ||||
-rw-r--r-- | tests/test_process.py | 4 |
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: |