Make sure goto definitions works on with, fixes #1280

This commit is contained in:
Dave Halter committed 2019-12-13 16:57:18 +01:00
1 parent 923fcf95d9
commit 92c59180fd
3 files changed
+21 -1

No files matched your search

+16
View File
@@ -341,3 +341,19 @@ with open('') as f1, open('') as f2:
f1.closed
#? ['closed']
f2.closed
class Foo():
def __enter__(self):
return ''
#? 14 str()
with Foo() as f3:
#? str()
f3
#! 14 ['with Foo() as f3: f3']
with Foo() as f3:
f3
#? 6 Foo
with Foo() as f3:
f3