diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-07-27 10:20:26 +0200 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-07-27 10:20:26 +0200 |
commit | fd15c8efa8b1344aa05ef4531e65df698b1b8679 (patch) | |
tree | bc164ed6566acf42e52e188f2542f2525a275db8 /test/data | |
parent | 3e5c562599e14ba1d8af5a69ddb69f1a590ba374 (diff) | |
download | logilab-common-fd15c8efa8b1344aa05ef4531e65df698b1b8679.tar.gz |
[cleanup] delete-trailing-whitespaces
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/module.py | 12 | ||||
-rw-r--r-- | test/data/module2.py | 4 | ||||
-rw-r--r-- | test/data/noendingnewline.py | 16 |
3 files changed, 15 insertions, 17 deletions
diff --git a/test/data/module.py b/test/data/module.py index 8cadbca..9b85430 100644 --- a/test/data/module.py +++ b/test/data/module.py @@ -36,11 +36,11 @@ class YO: raise XXXError() except: raise - -#print '*****>',YO.__dict__ + +#print '*****>',YO.__dict__ class YOUPI(YO): class_attr = None - + def __init__(self): self.member = None @@ -63,12 +63,12 @@ class YOUPI(YO): """static method test""" assert MY_DICT, '???' static_method = staticmethod(static_method) - + def class_method(cls): """class method test""" exec a in b class_method = classmethod(class_method) - + def nested_args(a, (b, c, d)): """nested arguments test""" @@ -84,5 +84,5 @@ def nested_args(a, (b, c, d)): else: c = a and b or d map(lambda x, y: (y, x), a) - + redirect = nested_args diff --git a/test/data/module2.py b/test/data/module2.py index 3961865..78976c4 100644 --- a/test/data/module2.py +++ b/test/data/module2.py @@ -23,7 +23,7 @@ class AbstractClass(object): if param: return 'toto' return - + class Concrete0: __implements__ = MyIFace class Concrete1: @@ -46,7 +46,7 @@ def raise_string(a=2, *args, **kwargs): raise 'pas glop' raise Exception, 'yo' yield 'coucou' - + a = b + 2 c = b * 2 c = b / 2 diff --git a/test/data/noendingnewline.py b/test/data/noendingnewline.py index 353ded4..703b124 100644 --- a/test/data/noendingnewline.py +++ b/test/data/noendingnewline.py @@ -1,17 +1,17 @@ -import unittest +import unittest class TestCase(unittest.TestCase): def setUp(self): unittest.TestCase.setUp(self) - - + + def tearDown(self): unittest.TestCase.tearDown(self) - + def testIt(self): self.a = 10 self.xxx() @@ -21,11 +21,11 @@ class TestCase(unittest.TestCase): if False: pass print 'a' - + if False: pass pass - + if False: pass print 'rara' @@ -33,6 +33,4 @@ class TestCase(unittest.TestCase): if __name__ == '__main__': print 'test2' - unittest.main() - -
\ No newline at end of file + unittest.main() |