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

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