diff options
author | Ashley Whetter <ashley@awhetter.co.uk> | 2019-06-14 22:28:42 -0700 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-06-20 10:02:14 +0200 |
commit | 33b8185a455c1686d038258697bb93005f2441c2 (patch) | |
tree | 4a50ccac775c009436e45803129e428ed694065f /tests/regrtest_data/py3k_errors_and_warnings.py | |
parent | 7081d91f30728653000bdfc59ea85a3395f96418 (diff) | |
download | pylint-git-33b8185a455c1686d038258697bb93005f2441c2.tar.gz |
Stopped installing tests with package
Diffstat (limited to 'tests/regrtest_data/py3k_errors_and_warnings.py')
-rw-r--r-- | tests/regrtest_data/py3k_errors_and_warnings.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/regrtest_data/py3k_errors_and_warnings.py b/tests/regrtest_data/py3k_errors_and_warnings.py new file mode 100644 index 000000000..3d033e86c --- /dev/null +++ b/tests/regrtest_data/py3k_errors_and_warnings.py @@ -0,0 +1,19 @@ +"""Contains both normal error messages and Python3 porting error messages.""" +# pylint: disable=too-few-public-methods + +# error: import missing `from __future__ import absolute_import` +import sys + +# error: Use raise ErrorClass(args) instead of raise ErrorClass, args. +raise Exception, 1 + +class Test(object): + """dummy""" + + def __init__(self): + # warning: Calling a dict.iter*() method + {1: 2}.iteritems() + return 42 + +# error: print statement used +print 'not in python3' |