mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
also add a test for class execution, which still fails due to another bug, that has been (almost) fixed lately, fixes #305
This commit is contained in:
@@ -76,11 +76,20 @@ c
|
||||
#! 0 ['def c']
|
||||
c()
|
||||
|
||||
class BeforeAssignment():
|
||||
|
||||
class ClassVar():
|
||||
x = 3
|
||||
|
||||
#! 18 ['x = 3']
|
||||
BeforeAssignment.x = ''
|
||||
#! ['x = 3']
|
||||
ClassVar.x
|
||||
#! ['x = 3']
|
||||
ClassVar().x
|
||||
|
||||
# before assignments
|
||||
#! 10 ['x = 3']
|
||||
ClassVar.x = ''
|
||||
#! 12 ['x = 3']
|
||||
ClassVar().x = ''
|
||||
|
||||
# -----------------
|
||||
# imports
|
||||
|
||||
Reference in New Issue
Block a user