summaryrefslogtreecommitdiff
path: root/test/ext/asyncio/test_session_py3k.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-08-30 19:36:40 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-08-30 19:36:40 +0000
commitfb874f97fab798eea76f9732a31bb9332877d00e (patch)
tree7fce5c30db89ebbf5ddc212be44b83275bda9881 /test/ext/asyncio/test_session_py3k.py
parent916bd20b6d1e7c153d334c31cf0882f502e3815e (diff)
parent1798c3cf1c407ba2a05855e97ae39997f213084d (diff)
downloadsqlalchemy-fb874f97fab798eea76f9732a31bb9332877d00e.tar.gz
Merge "Improve error message when inspecting async proxies"
Diffstat (limited to 'test/ext/asyncio/test_session_py3k.py')
-rw-r--r--test/ext/asyncio/test_session_py3k.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/ext/asyncio/test_session_py3k.py b/test/ext/asyncio/test_session_py3k.py
index ebedfedbf..a0aaf7ee0 100644
--- a/test/ext/asyncio/test_session_py3k.py
+++ b/test/ext/asyncio/test_session_py3k.py
@@ -580,12 +580,10 @@ class AsyncEventTest(AsyncFixture):
@async_test
async def test_no_async_listeners(self, async_session):
- with testing.expect_raises(
+ with testing.expect_raises_message(
NotImplementedError,
- "NotImplementedError: asynchronous events are not implemented "
- "at this time. Apply synchronous listeners to the "
- "AsyncEngine.sync_engine or "
- "AsyncConnection.sync_connection attributes.",
+ "asynchronous events are not implemented at this time. "
+ "Apply synchronous listeners to the AsyncSession.sync_session.",
):
event.listen(async_session, "before_flush", mock.Mock())