summaryrefslogtreecommitdiff
path: root/test/farm/annotate/src
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-03-15 08:26:32 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-03-15 08:26:32 -0400
commit2a92dec06a4fa23b1c6630aeb59e770bb4a4bf7f (patch)
tree8ccd13533a77b03346719894abf57d08fb553ad8 /test/farm/annotate/src
parentdc3b1ab7788a9d927c9342bfbf7b8cc8e8dfac26 (diff)
downloadpython-coveragepy-2a92dec06a4fa23b1c6630aeb59e770bb4a4bf7f.tar.gz
Naming the directorie numerically is silly.
Diffstat (limited to 'test/farm/annotate/src')
-rw-r--r--test/farm/annotate/src/white.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/farm/annotate/src/white.py b/test/farm/annotate/src/white.py
new file mode 100644
index 0000000..0c4bcb8
--- /dev/null
+++ b/test/farm/annotate/src/white.py
@@ -0,0 +1,31 @@
+# A test case sent to me by Steve White
+
+def f(self):
+ if self==1:
+ pass
+ elif self.m('fred'):
+ pass
+ elif (g==1) and (b==2):
+ pass
+ elif self.m('fred')==True:
+ pass
+ elif ((g==1) and (b==2))==True:
+ pass
+ else:
+ pass
+
+def g(x):
+ if x == 1:
+ a = 1
+ else:
+ a = 2
+
+g(1)
+
+def h(x):
+ if x == 1:
+ a = 1
+ else:
+ a = 2
+
+h(2)