diff options
Diffstat (limited to 'pylint/test/regrtest_data/py3k_error_flag.py')
-rw-r--r-- | pylint/test/regrtest_data/py3k_error_flag.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pylint/test/regrtest_data/py3k_error_flag.py b/pylint/test/regrtest_data/py3k_error_flag.py new file mode 100644 index 0000000..c12d250 --- /dev/null +++ b/pylint/test/regrtest_data/py3k_error_flag.py @@ -0,0 +1,11 @@ +"""Contains both normal error messages and Python3 porting error messages."""
+# pylint: disable=bad-builtin, too-few-public-methods
+
+raise Exception, 1 # Error emitted here with the Python 3 checker.
+
+
+class Test(object):
+ """dummy"""
+
+ def __init__(self):
+ return 42
|