]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't use "is" to compare exceptions
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 15 Oct 2018 05:44:13 +0000 (01:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 15 Oct 2018 05:45:04 +0000 (01:45 -0400)
commit799be9a36d21dcd4271e8d077d5f5fdc69a04f17
treee6a08ff6aeaad84e9e39fcaf930552860843a460
parentae9f73338198a005d25deb8a54f634f98dad2b90
Don't use "is" to compare exceptions

psycopg2 is introducing a fine grained exception model where
most exceptions will be specialized subclasses, so don't use
"is" to compare an expression type

Change-Id: I2eac7503e38136f0dcc0da6f77b0b1d83ea1c6dc
(cherry picked from commit c5e888a3ddb5019cdbc537f9706de537aa7b92e0)
test/orm/test_transaction.py