tests: Move super-as-local test from cpydiff to basic tests.
It's now possible to use the name "super" as a local variable.
This commit is contained in:
parent
dce7dd4259
commit
084824f866
|
@ -0,0 +1,9 @@
|
||||||
|
# test using the name "super" as a local variable
|
||||||
|
|
||||||
|
class A:
|
||||||
|
def foo(self):
|
||||||
|
super = [1, 2]
|
||||||
|
super.pop()
|
||||||
|
print(super)
|
||||||
|
|
||||||
|
A().foo()
|
|
@ -1,13 +0,0 @@
|
||||||
"""
|
|
||||||
categories: Core,Classes
|
|
||||||
description: Bug when using "super" as a local
|
|
||||||
cause: Unknown
|
|
||||||
workaround: Unknown
|
|
||||||
"""
|
|
||||||
class A:
|
|
||||||
def foo(self):
|
|
||||||
super = [1]
|
|
||||||
super.pop()
|
|
||||||
print(super)
|
|
||||||
|
|
||||||
A().foo()
|
|
Loading…
Reference in New Issue