diff options
Diffstat (limited to 'pylint/test/input/func_w0623_py30.py')
-rw-r--r-- | pylint/test/input/func_w0623_py30.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pylint/test/input/func_w0623_py30.py b/pylint/test/input/func_w0623_py30.py new file mode 100644 index 0000000..f6c5f57 --- /dev/null +++ b/pylint/test/input/func_w0623_py30.py @@ -0,0 +1,16 @@ +"""Test for W0623, overwriting names in exception handlers.""" + +__revision__ = '' + +class MyError(Exception): + """Special exception class.""" + pass + + +def some_function(): + """A function.""" + + try: + {}["a"] + except KeyError, some_function: # W0623 + pass |