diff options
Diffstat (limited to 'tests/farm/annotate/gold_v24/white.py,cover')
| -rw-r--r-- | tests/farm/annotate/gold_v24/white.py,cover | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/farm/annotate/gold_v24/white.py,cover b/tests/farm/annotate/gold_v24/white.py,cover new file mode 100644 index 0000000..bbd8d42 --- /dev/null +++ b/tests/farm/annotate/gold_v24/white.py,cover @@ -0,0 +1,33 @@ + # 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 0: #pragma: no cover +- pass +> if x == 1: +! a = 1 +> else: +> a = 2 + +> h(2) |
