summaryrefslogtreecommitdiff
path: root/test/engine/test_execute.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2018-02-06 15:47:43 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2018-02-06 19:38:59 -0500
commit2bc7dfebe6dd708573fcc08b769241b36d675588 (patch)
treeeee6db0f6e9bebacc511244e25ab88e25b1bfb19 /test/engine/test_execute.py
parent00570a6ac9453a48b06ca094de6e0502c3b73fa5 (diff)
downloadsqlalchemy-2bc7dfebe6dd708573fcc08b769241b36d675588.tar.gz
Check cx_Oracle error code on all exception classes
Fixed bug in cx_Oracle disconnect detection, used by pre_ping and other features, where an error could be raised as DatabaseError which includes a numeric error code; previously we weren't checking in this case for a disconnect code. Change-Id: I359bb5ede25a4726ea632b81af83c6391f405ae1 Fixes: #4182
Diffstat (limited to 'test/engine/test_execute.py')
-rw-r--r--test/engine/test_execute.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py
index 5263c79db..1b7934794 100644
--- a/test/engine/test_execute.py
+++ b/test/engine/test_execute.py
@@ -1829,7 +1829,8 @@ class HandleErrorTest(fixtures.TestBase):
with expect_warnings(
r"An exception has occurred during handling of a previous "
- r"exception. The previous exception is.*i_dont_exist",
+ r"exception. The previous exception "
+ r"is.*(?:i_dont_exist|does not exist)",
py2konly=True
):
with patch.object(conn.dialect, "do_rollback", boom) as patched: