summaryrefslogtreecommitdiff
path: root/test/farm/html/src
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-24 21:49:19 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-24 21:49:19 -0500
commit9e2cd06dd56cf64e787b7951c889ceda31af7dae (patch)
treebfb86fbe8de9d757240a63c515c111b00e5b644e /test/farm/html/src
parent4559252c75cba7b6791c777f43fd12d60ef40282 (diff)
downloadpython-coveragepy-git-9e2cd06dd56cf64e787b7951c889ceda31af7dae.tar.gz
Don't annotate partial branches with -1, use 'exit' instead.
Diffstat (limited to 'test/farm/html/src')
-rw-r--r--test/farm/html/src/b.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/farm/html/src/b.py b/test/farm/html/src/b.py
new file mode 100644
index 00000000..e8752300
--- /dev/null
+++ b/test/farm/html/src/b.py
@@ -0,0 +1,16 @@
+# A test file for HTML reporting by coverage.
+
+def one(x):
+ if x < 2:
+ # Needed a < to look at HTML entities.
+ a = 3
+ else:
+ a = 4
+
+one(1)
+
+def two(x):
+ if x:
+ a = 5
+
+two(1)