Damien George
8 years ago
15 changed files with 60 additions and 2 deletions
@ -0,0 +1,16 @@ |
|||
# test async def |
|||
|
|||
def dec(f): |
|||
print('decorator') |
|||
return f |
|||
|
|||
# test definition with a decorator |
|||
@dec |
|||
async def foo(): |
|||
print('foo') |
|||
|
|||
coro = foo() |
|||
try: |
|||
coro.send(None) |
|||
except StopIteration: |
|||
print('StopIteration') |
@ -0,0 +1,3 @@ |
|||
decorator |
|||
foo |
|||
StopIteration |
@ -1,3 +1,4 @@ |
|||
# basic REPL tests |
|||
print(1) |
|||
[A |
|||
2 |
|||
|
@ -1,2 +1,5 @@ |
|||
from import1b import var |
|||
print(var) |
|||
|
|||
from import1b import var as var2 |
|||
print(var2) |
|||
|
Loading…
Reference in new issue