summaryrefslogtreecommitdiff
path: root/test/engine/test_pool.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/engine/test_pool.py')
-rw-r--r--test/engine/test_pool.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py
index 02eb5fc54..75caa233a 100644
--- a/test/engine/test_pool.py
+++ b/test/engine/test_pool.py
@@ -824,7 +824,10 @@ class PoolFirstConnectSyncTest(PoolTestBase):
class DeprecatedPoolListenerTest(PoolTestBase):
@testing.requires.predictable_gc
- @testing.uses_deprecated(r".*Use event.listen")
+ @testing.uses_deprecated(
+ r".*Use the PoolEvents",
+ r".*'listeners' argument .* is deprecated"
+ )
def test_listeners(self):
class InstrumentingListener(object):
def __init__(self):
@@ -1009,7 +1012,10 @@ class DeprecatedPoolListenerTest(PoolTestBase):
c.close()
snoop.assert_total(1, 1, 2, 2)
- @testing.uses_deprecated(r".*Use event.listen")
+ @testing.uses_deprecated(
+ r".*Use the PoolEvents",
+ r".*'listeners' argument .* is deprecated"
+ )
def test_listeners_callables(self):
def connect(dbapi_con, con_record):
counts[0] += 1