diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-03-29 16:54:58 +0100 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-03-29 16:54:58 +0100 |
commit | 44e4782439550b9a74a10e63fc7837229f70b300 (patch) | |
tree | 5a9f94d6e299a72b822d488186351a868c9496ef | |
parent | d4a358ff5104d57cf13f2ac5f48f07039a446a33 (diff) | |
download | pylint-44e4782439550b9a74a10e63fc7837229f70b300.tar.gz |
add test for #124337, fixed in logilab-astng
-rw-r--r-- | test/input/func_noerror_crash_124337.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/input/func_noerror_crash_124337.py b/test/input/func_noerror_crash_124337.py new file mode 100644 index 0000000..8ac9e57 --- /dev/null +++ b/test/input/func_noerror_crash_124337.py @@ -0,0 +1,11 @@ +# pylint: disable=C0121 +"""http://www.logilab.org/ticket/124337""" + +import gtk + +def print_some_constant(arg=gtk.BUTTONS_OK): + """crash because gtk.BUTTONS_OK, a gtk enum type, is returned by astng as a + constant + """ + print arg + |