diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-13 07:23:09 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-13 07:23:09 -0400 |
commit | 14d8d39ca7387231b9ddeaca8126364761581b2b (patch) | |
tree | 3b24aab3d335d1e936980682752c2eb787ba0ec9 /test | |
parent | 8d65b505d832ba4d6e4ad8a612c69377303a1772 (diff) | |
download | python-coveragepy-git-14d8d39ca7387231b9ddeaca8126364761581b2b.tar.gz |
Add some excluded lines to the annotation tests, and write some docstrings for annotate.py
Diffstat (limited to 'test')
-rw-r--r-- | test/farm/annotate/gold/white.py,cover | 2 | ||||
-rw-r--r-- | test/farm/annotate/gold_v24/white.py,cover | 2 | ||||
-rw-r--r-- | test/farm/annotate/src/white.py | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/test/farm/annotate/gold/white.py,cover b/test/farm/annotate/gold/white.py,cover index a959ed5a..0287ea9a 100644 --- a/test/farm/annotate/gold/white.py,cover +++ b/test/farm/annotate/gold/white.py,cover @@ -23,6 +23,8 @@ > g(1)
> def h(x):
+- if 0: #pragma: no cover
+- pass
> if x == 1:
! a = 1
> else:
diff --git a/test/farm/annotate/gold_v24/white.py,cover b/test/farm/annotate/gold_v24/white.py,cover index 952222cf..3eca5780 100644 --- a/test/farm/annotate/gold_v24/white.py,cover +++ b/test/farm/annotate/gold_v24/white.py,cover @@ -23,6 +23,8 @@ > g(1)
> def h(x):
+- if 0: #pragma: no cover
+- pass
> if x == 1:
! a = 1
> else:
diff --git a/test/farm/annotate/src/white.py b/test/farm/annotate/src/white.py index 0c4bcb81..ecbbd25a 100644 --- a/test/farm/annotate/src/white.py +++ b/test/farm/annotate/src/white.py @@ -23,6 +23,8 @@ def g(x): g(1) def h(x): + if 0: #pragma: no cover + pass if x == 1: a = 1 else: |