Skip to content

Commit

Permalink
tests: Add .exp files for async tests, so they can run with Python 3.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Apr 13, 2016
1 parent 6eb17c3 commit 7f7e247
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/basics/async_await.py.exp
@@ -0,0 +1,32 @@
4
3
2
1
0
0
1
0
0
2
1
0
0
1
0
0
3
2
1
0
0
1
0
0
2
1
0
0
1
0
0
finished
5 changes: 5 additions & 0 deletions tests/basics/async_await2.py.exp
@@ -0,0 +1,5 @@
wait value: 1
return from send: message from wait(1)
wait got back: message from main
x = 100
got StopIteration
10 changes: 10 additions & 0 deletions tests/basics/async_for.py.exp
@@ -0,0 +1,10 @@
init
aiter
anext
a
anext
b
anext
c
anext
finished
36 changes: 36 additions & 0 deletions tests/basics/async_for2.py.exp
@@ -0,0 +1,36 @@
init
aiter
f start: 10
coro yielded: 11
coro yielded: 12
f returned: 13
anext
f start: 20
coro yielded: 21
coro yielded: 22
f returned: 23
x 0
anext
f start: 20
coro yielded: 21
coro yielded: 22
f returned: 23
x 1
anext
f start: 20
coro yielded: 21
coro yielded: 22
f returned: 23
x 2
anext
f start: 20
coro yielded: 21
coro yielded: 22
f returned: 23
x 3
anext
f start: 20
coro yielded: 21
coro yielded: 22
f returned: 23
finished
4 changes: 4 additions & 0 deletions tests/basics/async_with.py.exp
@@ -0,0 +1,4 @@
enter
body
exit
finished
17 changes: 17 additions & 0 deletions tests/basics/async_with2.py.exp
@@ -0,0 +1,17 @@
enter
f start: 10
coro yielded: 11
coro yielded: 12
f returned: 13
body start
f start: 30
coro yielded: 31
coro yielded: 32
body f returned: 33
body end
exit
f start: 20
coro yielded: 21
coro yielded: 22
f returned: 23
finished

0 comments on commit 7f7e247

Please sign in to comment.