diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-02-02 13:24:40 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-02-21 16:26:57 -0500 |
commit | 93b7767d00267ebe149cabcae7246b6796352eb8 (patch) | |
tree | 021f4960fccf4d6cc3cce17e680bdd6e8823d5c9 /lib/sqlalchemy/testing/assertions.py | |
parent | 1e126829d594aa9f525c41942b2729bae9378fcd (diff) | |
download | sqlalchemy-93b7767d00267ebe149cabcae7246b6796352eb8.tar.gz |
Deprecate connection branching
The :meth:`.Connection.connect` method is deprecated as is the concept of
"connection branching", which copies a :class:`.Connection` into a new one
that has a no-op ".close()" method. This pattern is oriented around the
"connectionless execution" concept which is also being removed in 2.0.
As part of this change we begin to move the internals away from
"connectionless execution" overall. Remove the "connectionless
execution" concept from the reflection internals and replace with
explicit patterns at the Inspector level.
Fixes: #5131
Change-Id: Id23d28a9889212ac5ae7329b85136157815d3e6f
Diffstat (limited to 'lib/sqlalchemy/testing/assertions.py')
-rw-r--r-- | lib/sqlalchemy/testing/assertions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py index c74259bdf..d055ba86e 100644 --- a/lib/sqlalchemy/testing/assertions.py +++ b/lib/sqlalchemy/testing/assertions.py @@ -81,6 +81,10 @@ def expect_deprecated(*messages, **kw): return _expect_warnings(sa_exc.SADeprecationWarning, messages, **kw) +def expect_deprecated_20(*messages, **kw): + return _expect_warnings(sa_exc.RemovedIn20Warning, messages, **kw) + + def emits_warning_on(db, *messages): """Mark a test as emitting a warning on a specific dialect. |