Skip to content

Commit 084824f

Browse files
committed
tests: Move super-as-local test from cpydiff to basic tests.
It's now possible to use the name "super" as a local variable.
1 parent dce7dd4 commit 084824f

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# test using the name "super" as a local variable
2+
3+
class A:
4+
def foo(self):
5+
super = [1, 2]
6+
super.pop()
7+
print(super)
8+
9+
A().foo()

tests/cpydiff/core_class_superaslocal.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)