From 7f7e24754564673c7a8246cd067b68b6e5de1e29 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 13 Apr 2016 15:56:15 +0100 Subject: [PATCH] tests: Add .exp files for async tests, so they can run with Python 3.4. --- tests/basics/async_await.py.exp | 32 ++++++++++++++++++++++++++++ tests/basics/async_await2.py.exp | 5 +++++ tests/basics/async_for.py.exp | 10 +++++++++ tests/basics/async_for2.py.exp | 36 ++++++++++++++++++++++++++++++++ tests/basics/async_with.py.exp | 4 ++++ tests/basics/async_with2.py.exp | 17 +++++++++++++++ 6 files changed, 104 insertions(+) create mode 100644 tests/basics/async_await.py.exp create mode 100644 tests/basics/async_await2.py.exp create mode 100644 tests/basics/async_for.py.exp create mode 100644 tests/basics/async_for2.py.exp create mode 100644 tests/basics/async_with.py.exp create mode 100644 tests/basics/async_with2.py.exp 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