diff --git a/test/suite/E10.py b/test/suite/E10.py index cd142e39..1a901124 100644 --- a/test/suite/E10.py +++ b/test/suite/E10.py @@ -1,8 +1,3 @@ -#: E101 W191 -for a in 'abc': - for b in 'xyz': - print a # indented with 8 spaces - print b # indented with 1 tab #: E101 E122 W191 W191 if True: pass @@ -38,4 +33,8 @@ def test_keys(self): u'Norrbotten', u'V\xe4sterbotten', ]) -#: +#: E101 W191 +if True: + print(""" + tab at start of this line +""") diff --git a/test/suite/E90.py b/test/suite/E90.py new file mode 100644 index 00000000..e0a10d04 --- /dev/null +++ b/test/suite/E90.py @@ -0,0 +1,16 @@ +#: E901 += [x +#: E901 E101 W191 +while True: + try: + pass + except: + print 'Whoops' +#: Okay + +# Issue #119 +# Do not crash with Python2 if the line endswith '\r\r\n' +EMPTY_SET = set() +SET_TYPE = type(EMPTY_SET) +toto = 0 + 0 +#: diff --git a/test/suite/out/E10.py b/test/suite/out/E10.py index d8892eba..88d84be3 100644 --- a/test/suite/out/E10.py +++ b/test/suite/out/E10.py @@ -1,8 +1,3 @@ -#: E101 W191 -for a in 'abc': - for b in 'xyz': - print a # indented with 8 spaces - print b # indented with 1 tab #: E101 E122 W191 W191 if True: pass @@ -41,4 +36,10 @@ def test_keys(self): u'Norrbotten', u'V\xe4sterbotten', ]) -#: + + +#: E101 W191 +if True: + print(""" + tab at start of this line +""") diff --git a/test/suite/out/E90.py b/test/suite/out/E90.py new file mode 100644 index 00000000..ea2684f8 --- /dev/null +++ b/test/suite/out/E90.py @@ -0,0 +1,17 @@ +#: E901 += [x +#: E901 E101 W191 +while True: + try: + pass + except: + print 'Whoops' +#: Okay + +# Issue #119 +# Do not crash with Python2 if the line endswith '\r\r\n' +EMPTY_SET = set() +SET_TYPE = type(EMPTY_SET) + +toto = 0 + 0 +#: