summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/warnings.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-07-16 11:34:13 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-07-16 11:34:13 -0400
commita25d6ead9cf6d2d51ae67e53eac50f642a0bb432 (patch)
treea6fbc2a44f2c768773ec8da961afc89725bdf7b3 /lib/sqlalchemy/testing/warnings.py
parent42d747f72efd776a575ea776ebb5c768282f44eb (diff)
downloadsqlalchemy-a25d6ead9cf6d2d51ae67e53eac50f642a0bb432.tar.gz
guard against unexpected weakref cleanups
Added some guards against ``KeyError`` in the event system to accommodate the case that the interpreter is shutting down at the same time :meth:`_engine.Engine.dispose` is being called, which would cause stack trace warnings. Fixes: #6740 Change-Id: I2c42e9edac2371e68b39d8360494c5fddfd6cd8c
Diffstat (limited to 'lib/sqlalchemy/testing/warnings.py')
0 files changed, 0 insertions, 0 deletions