]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
adjust error message assertion for TypeError
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Jan 2022 20:30:15 +0000 (15:30 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Jan 2022 20:30:15 +0000 (15:30 -0500)
commit924d38e660981ae2a7d55355603223e0cdf9e4ee
tree3cbe769ffd9569c335793eb0efbc5c32079d4bc2
parenteee7a3add99df2865e6d907f29f84f6d4ce22a8b
adjust error message assertion for TypeError

in eee7a3add99df2865e6d907f2 I added a few TypeError
tests, and some python interpreters produce a message like
"join() got an unexpected...", others seem to produce
"Query.join() got an unexpected..."

the pattern is strange, all Python 3.10's seem to return the
class name.  For Python 3.8 and 3.9, my local intepreters
are doing the Python 3.10 behavior but github actions are doing
the older behavior.  Python 3.7 both here and on github actions
are doing the older behavior.

In any case, adjust the regexps to match both.

Change-Id: I3ab13e2be51ab243f8f6bcecf26fd03070cec17f
test/orm/test_joins.py