diff options
author | Torsten Marek <shlomme@gmail.com> | 2014-07-30 21:53:14 +0200 |
---|---|---|
committer | Torsten Marek <shlomme@gmail.com> | 2014-07-30 21:53:14 +0200 |
commit | 9d23d8ccc1e62777c53163b7aaa788f713bae4e5 (patch) | |
tree | 52158874ac43d109aefcd2c254e679b300b4bf57 | |
parent | 58e3288d55e9a60ad1c848881b4bbfcf8a8370f7 (diff) | |
download | pylint-9d23d8ccc1e62777c53163b7aaa788f713bae4e5.tar.gz |
Remove testcases only for Python < 2.7.
-rw-r--r-- | test/input/func_format_py_27.py | 102 | ||||
-rw-r--r-- | test/messages/func_format_py_27.txt | 45 | ||||
-rw-r--r-- | test/messages/func_keyword_repeat_py25.txt | 2 |
3 files changed, 0 insertions, 149 deletions
diff --git a/test/input/func_format_py_27.py b/test/input/func_format_py_27.py deleted file mode 100644 index be5033c..0000000 --- a/test/input/func_format_py_27.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint:disable=C0103,W0104,W0105,pointless-except -"""Check format -""" -__revision__ = '' - -notpreceded= 1 -notfollowed =1 -notfollowed <=1 - -correct = 1 -correct >= 1 - -def func(arg, arg2): - """test named argument - """ - func(arg=arg+1, - arg2=arg2-arg) - -aaaa,bbbb = 1,2 -aaaa |= bbbb -aaaa &= bbbb - - -if aaaa: pass -else: - aaaa,bbbb = 1,2 - aaaa,bbbb = bbbb,aaaa - -bbbb = (1,2,3) - -aaaa = bbbb[1:] -aaaa = bbbb[:1] -aaaa = bbbb[:] - -aaaa = {aaaa:bbbb} - - -# allclose(x,y) uses |x-y|<ATOL+RTOL*|y| -"""docstring,should not match -isn't it:yes! -a=b -""" -aaaa = 'multiple lines\ -string,hehehe' - - -boo = 2 # allclose(x,y) uses |x-y|<ATOL+RTOL*|y| - -def other(funky): - """yo, test formatted result with indentation""" - funky= funky+2 - -html = """<option value="=">ist genau gleich</option> -yo+=4 -""" -html2 = """<option value='='>ist genau gleich</option> -yo+=4 -""" - -func('''<body>Hello -</body>''', 0) - -assert boo <= 10, "Note is %.2f. Either you cheated, or pylint's \ -broken!" % boo - -def _gc_debug(gcc): - """bad format undetected w/ py2.5""" - ocount = {} - for obj in gcc.get_objects(): - try: - ocount[obj.__class__]+= 1 - except KeyError: - ocount[obj.__class__]=1 - except AttributeError: - pass - -def hop(context): - """multi-lines string""" - return ['''<a id="sendbutton" href="javascript: $('%(domid)s').submit()"> -<img src="%(sendimgpath)s" alt="%(send)s"/>%(send)s</a>''' % context, - '''<a id="cancelbutton" href="javascript: history.back()"> -<img src="%(cancelimgpath)s" alt="%(cancel)s"/>%(cancel)s</a>''' % context] -titreprojet = '<tr><td colspan="10">\ -<img src="images/drapeau_vert.png" alt="Drapeau vert" />\ -<strong>%s</strong></td></tr>' % aaaa - -# Well-formatted try-except-finally block. -try: - pass -except IOError, e: - print e -finally: - pass - -try: - pass -except IOError, e: - print e -finally: pass # multiple-statements - -# This is not allowed by the default configuration. -if True: print False diff --git a/test/messages/func_format_py_27.txt b/test/messages/func_format_py_27.txt deleted file mode 100644 index ae114eb..0000000 --- a/test/messages/func_format_py_27.txt +++ /dev/null @@ -1,45 +0,0 @@ -C: 6: Exactly one space required before assignment -notpreceded= 1 - ^ -C: 7: Exactly one space required after assignment -notfollowed =1 - ^ -C: 8: Exactly one space required after comparison -notfollowed <=1 - ^^ -C: 19: Exactly one space required after comma -aaaa,bbbb = 1,2 - ^ -C: 19: Exactly one space required after comma -aaaa,bbbb = 1,2 - ^ -C: 24: More than one statement on a single line -C: 26: Exactly one space required after comma - aaaa,bbbb = 1,2 - ^ -C: 26: Exactly one space required after comma - aaaa,bbbb = 1,2 - ^ -C: 27: Exactly one space required after comma - aaaa,bbbb = bbbb,aaaa - ^ -C: 27: Exactly one space required after comma - aaaa,bbbb = bbbb,aaaa - ^ -C: 29: Exactly one space required after comma -bbbb = (1,2,3) - ^ -C: 29: Exactly one space required after comma -bbbb = (1,2,3) - ^ -C: 51: Exactly one space required before assignment - funky= funky+2 - ^ -C: 71: Exactly one space required before assignment - ocount[obj.__class__]+= 1 - ^^ -C: 73: Exactly one space required around assignment - ocount[obj.__class__]=1 - ^ -C: 99: More than one statement on a single line -C:102: More than one statement on a single line diff --git a/test/messages/func_keyword_repeat_py25.txt b/test/messages/func_keyword_repeat_py25.txt deleted file mode 100644 index b285b97..0000000 --- a/test/messages/func_keyword_repeat_py25.txt +++ /dev/null @@ -1,2 +0,0 @@ -E: 8: Duplicate keyword argument 'two' in function call -E: 9: Duplicate keyword argument 'one' in function call |