]> 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:44:13 +0000 (01:44 -0400)
commitc5e888a3ddb5019cdbc537f9706de537aa7b92e0
treebd6b73bef42bac2fcd343e3fae6c06fc3ae0df73
parenta8781b51b4039eee56791b9dbfdee183f7a5b797
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
test/orm/test_transaction.py