third_party.pylibs.pylint.src/pylint/test/regrtest_data/py3k_error_flag.py
Claudiu Popa 37e6b5c9c2 Make the --py3k flag commutative with the -E flag.
Also, this patch fixes the leaks of error messages from the Python 3
checker when the errors mode was activated. Closes issue #437.
2015-02-28 19:13:33 +02:00

12 lines
293 B
Python

"""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