summaryrefslogtreecommitdiff
path: root/test/engine/test_pool.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-01-08 17:46:55 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2019-01-11 22:09:53 -0500
commita6094d6682c956ce8a77fbec2a2700f901f3e75e (patch)
tree39b9e21f3bf0270cf8fe11dbc6fabb73c9cb5f14 /test/engine/test_pool.py
parent1e278de4cc9a4181e0747640a960e80efcea1ca9 (diff)
downloadsqlalchemy-a6094d6682c956ce8a77fbec2a2700f901f3e75e.tar.gz
use ..deprecated directive w/ version in all cases
These changes should be ported from 1.3 back to 1.0 or possibly 0.9 to the extent they are relevant in each version. In 1.3 we hope to turn all deprecation documentation into warnings. Change-Id: I205186cde161af9389af513a425c62ce90dd54d8
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