diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2021-01-23 15:33:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2021-01-23 15:33:50 +0000 |
commit | fd3ca828f05198068eaf89c1f37f63fecad72a55 (patch) | |
tree | d3e5b98fbd09ab9772b9e75b0e23b31de18a8c35 /test/base/test_concurrency_py3k.py | |
parent | b290352ae7980d0263310c167da33e26be83b16b (diff) | |
parent | bb846d1650423ce8013feb93b3c8837b4c5498a0 (diff) | |
download | sqlalchemy-fd3ca828f05198068eaf89c1f37f63fecad72a55.tar.gz |
Merge "Improve error message when await_ call errors"
Diffstat (limited to 'test/base/test_concurrency_py3k.py')
-rw-r--r-- | test/base/test_concurrency_py3k.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/base/test_concurrency_py3k.py b/test/base/test_concurrency_py3k.py index 8eabece92..1492bc186 100644 --- a/test/base/test_concurrency_py3k.py +++ b/test/base/test_concurrency_py3k.py @@ -63,7 +63,7 @@ class TestAsyncioCompat(fixtures.TestBase): async def test_await_only_no_greenlet(self): to_await = run1() with expect_raises_message( - exc.InvalidRequestError, + exc.MissingGreenlet, r"greenlet_spawn has not been called; can't call await_\(\) here.", ): await_only(to_await) @@ -86,7 +86,7 @@ class TestAsyncioCompat(fixtures.TestBase): await_fallback(inner_await()) with expect_raises_message( - exc.InvalidRequestError, + exc.MissingGreenlet, "greenlet_spawn has not been called and asyncio event loop", ): await greenlet_spawn(go) |