summaryrefslogtreecommitdiff
path: root/test/base/test_concurrency_py3k.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/base/test_concurrency_py3k.py')
-rw-r--r--test/base/test_concurrency_py3k.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/base/test_concurrency_py3k.py b/test/base/test_concurrency_py3k.py
index 6a3098a6a..17a0fafb5 100644
--- a/test/base/test_concurrency_py3k.py
+++ b/test/base/test_concurrency_py3k.py
@@ -95,7 +95,12 @@ class TestAsyncioCompat(fixtures.TestBase):
):
await_only(to_await)
- # ensure no warning
+ # existing awaitable is done
+ with expect_raises(RuntimeError):
+ await greenlet_spawn(await_fallback, to_await)
+
+ # no warning for a new one...
+ to_await = run1()
await greenlet_spawn(await_fallback, to_await)
@async_test
@@ -118,7 +123,8 @@ class TestAsyncioCompat(fixtures.TestBase):
):
await greenlet_spawn(go)
- await to_await
+ with expect_raises(RuntimeError):
+ await to_await
@async_test
async def test_await_only_error(self):
@@ -141,7 +147,8 @@ class TestAsyncioCompat(fixtures.TestBase):
):
await greenlet_spawn(go)
- await to_await
+ with expect_raises(RuntimeError):
+ await to_await
@async_test
async def test_contextvars(self):