Browse Source

tests: Move super-as-local test from cpydiff to basic tests.

It's now possible to use the name "super" as a local variable.
pull/3071/head
Damien George 8 years ago
parent
commit
084824f866
  1. 9
      tests/basics/class_super_aslocal.py
  2. 13
      tests/cpydiff/core_class_superaslocal.py

9
tests/basics/class_super_aslocal.py

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

13
tests/cpydiff/core_class_superaslocal.py

@ -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…
Cancel
Save