tests: Add .exp files for async tests, so they can run with Python 3.4.
This commit is contained in:
parent
6eb17c31a9
commit
7f7e247545
32
tests/basics/async_await.py.exp
Normal file
32
tests/basics/async_await.py.exp
Normal file
@ -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
tests/basics/async_await2.py.exp
Normal file
5
tests/basics/async_await2.py.exp
Normal file
@ -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
tests/basics/async_for.py.exp
Normal file
10
tests/basics/async_for.py.exp
Normal file
@ -0,0 +1,10 @@
|
||||
init
|
||||
aiter
|
||||
anext
|
||||
a
|
||||
anext
|
||||
b
|
||||
anext
|
||||
c
|
||||
anext
|
||||
finished
|
36
tests/basics/async_for2.py.exp
Normal file
36
tests/basics/async_for2.py.exp
Normal file
@ -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
tests/basics/async_with.py.exp
Normal file
4
tests/basics/async_with.py.exp
Normal file
@ -0,0 +1,4 @@
|
||||
enter
|
||||
body
|
||||
exit
|
||||
finished
|
17
tests/basics/async_with2.py.exp
Normal file
17
tests/basics/async_with2.py.exp
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user