diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-13 15:56:15 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-13 15:56:15 +0100 |
commit | 7f7e24754564673c7a8246cd067b68b6e5de1e29 (patch) | |
tree | 131b3003f9a7581dc0f699ed542b53ad5a290dfb /tests | |
parent | 6eb17c31a926f33428817277ba36bd4950f3500d (diff) | |
download | micropython-7f7e24754564673c7a8246cd067b68b6e5de1e29.tar.gz micropython-7f7e24754564673c7a8246cd067b68b6e5de1e29.zip |
tests: Add .exp files for async tests, so they can run with Python 3.4.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/async_await.py.exp | 32 | ||||
-rw-r--r-- | tests/basics/async_await2.py.exp | 5 | ||||
-rw-r--r-- | tests/basics/async_for.py.exp | 10 | ||||
-rw-r--r-- | tests/basics/async_for2.py.exp | 36 | ||||
-rw-r--r-- | tests/basics/async_with.py.exp | 4 | ||||
-rw-r--r-- | tests/basics/async_with2.py.exp | 17 |
6 files changed, 104 insertions, 0 deletions
diff --git a/tests/basics/async_await.py.exp b/tests/basics/async_await.py.exp new file mode 100644 index 0000000000..b51c388a93 --- /dev/null +++ b/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 diff --git a/tests/basics/async_await2.py.exp b/tests/basics/async_await2.py.exp new file mode 100644 index 0000000000..fc9ff0aa53 --- /dev/null +++ b/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 diff --git a/tests/basics/async_for.py.exp b/tests/basics/async_for.py.exp new file mode 100644 index 0000000000..1f728a66c8 --- /dev/null +++ b/tests/basics/async_for.py.exp @@ -0,0 +1,10 @@ +init +aiter +anext +a +anext +b +anext +c +anext +finished diff --git a/tests/basics/async_for2.py.exp b/tests/basics/async_for2.py.exp new file mode 100644 index 0000000000..886232f7ba --- /dev/null +++ b/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 diff --git a/tests/basics/async_with.py.exp b/tests/basics/async_with.py.exp new file mode 100644 index 0000000000..1e9176af7b --- /dev/null +++ b/tests/basics/async_with.py.exp @@ -0,0 +1,4 @@ +enter +body +exit +finished diff --git a/tests/basics/async_with2.py.exp b/tests/basics/async_with2.py.exp new file mode 100644 index 0000000000..dd5a1c549a --- /dev/null +++ b/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 |