for_from_pyvar_loop_T601
decorators_T593
temp_sideeffects_T654
+class_scope_T671
+class_scope_del_T684
# CPython regression tests that don't current work:
pyregr.test_threadsignals
--- /dev/null
+# mode:run
+# tag: class, scope
+
+class MethodRedef(object):
+ """
+ >>> MethodRedef().a(5)
+ 7
+ """
+
+ def a(self, i):
+ return i+1
+
+ def a(self, i):
+ return i+2
--- /dev/null
+# mode:run
+# tag: class, scope
+# ticket: 671
+
+MAIN = True
+
+class OuterScopeLookup(object):
+ """
+ >>> OuterScopeLookup.MAIN
+ True
+ """
+ MAIN = MAIN # looked up in parent scope, assigned to class scope
--- /dev/null
+# 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