diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-12 12:19:21 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-12 12:19:21 -0400 |
| commit | 6930a02e97673fd4c4681a8e37e6a8b1f747415c (patch) | |
| tree | 7ae37786e5bc63e880365a8cc5e1be8073873ef8 /test/farm/annotate | |
| parent | 91f3ed212beb7fbf05e34a90a1926769763ad880 (diff) | |
| download | python-coveragepy-git-6930a02e97673fd4c4681a8e37e6a8b1f747415c.tar.gz | |
Python 2.4 reported lines a little differently, so we need to be able to have different gold files for that version.
Diffstat (limited to 'test/farm/annotate')
| -rw-r--r-- | test/farm/annotate/gold_v24/white.py,cover | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/farm/annotate/gold_v24/white.py,cover b/test/farm/annotate/gold_v24/white.py,cover new file mode 100644 index 00000000..952222cf --- /dev/null +++ b/test/farm/annotate/gold_v24/white.py,cover @@ -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)
|
