add test for #124337, fixed in logilab-astng

authorSylvain Th?nault <sylvain.thenault@logilab.fr>
changeset9fad9b347afa
branchdefault
phasepublic
hiddenno
parent revision#ad865cded3d6 use any(genexp) rather than a list comprehension
child revision#76de04726839 stop relying on is_standard_module to avoid having internal dependencies in external deps report. Closes #124660
files modified by this revision
test/input/func_noerror_crash_124337.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1364572498 -3600
# Fri Mar 29 16:54:58 2013 +0100
# Node ID 9fad9b347afa67d32407603c52c30add992d24e7
# Parent ad865cded3d62e8e91e14820ba75f7667fa132a2
add test for #124337, fixed in logilab-astng

diff --git a/test/input/func_noerror_crash_124337.py b/test/input/func_noerror_crash_124337.py
@@ -0,0 +1,11 @@
1 +# pylint: disable=C0121
2 +"""http://www.logilab.org/ticket/124337"""
3 +
4 +import gtk
5 +
6 +def print_some_constant(arg=gtk.BUTTONS_OK):
7 +    """crash because gtk.BUTTONS_OK, a gtk enum type, is returned by astng as a
8 +    constant
9 +    """
10 +    print arg
11 +