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:
Damien George 2017-05-06 11:01:57 +10:00
parent dce7dd4259
commit 084824f866
2 changed files with 9 additions and 13 deletions

View File

@ -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()

View File

@ -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()