From 739802b74a5fefe6f24b35ab1d7f1894f5315973 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 15 Mar 2009 08:26:32 -0400 Subject: Naming the directorie numerically is silly. --HG-- rename : test/farm/000/gold/white.py,cover => test/farm/annotate/gold/white.py,cover rename : test/farm/000/run.py => test/farm/annotate/run.py rename : test/farm/000/src/white.py => test/farm/annotate/src/white.py --- test/farm/annotate/src/white.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/farm/annotate/src/white.py (limited to 'test/farm/annotate/src') diff --git a/test/farm/annotate/src/white.py b/test/farm/annotate/src/white.py new file mode 100644 index 00000000..0c4bcb81 --- /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) -- cgit v1.2.1