summaryrefslogtreecommitdiff
path: root/tests/run/class_scope_del_T684.py
blob: 43368f33394789074a22c5e78cdcede913a18ab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# mode:run
# tag: class, scope, del
# ticket: 684

class DelInClass(object):
    """
    >>> DelInClass.y
    5
    >>> DelInClass.x
    Traceback (most recent call last):
    AttributeError: type object 'DelInClass' has no attribute 'x'
    """
    x = 5
    y = x
    del x