From: Mike Bayer Date: Thu, 8 Oct 2020 23:49:42 +0000 (-0400) Subject: dont try to update on None query_str X-Git-Tag: rel_1_4_0b1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd95f8eaa478994c1d285f48fcf0cb72f7a1c863;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git dont try to update on None query_str py2k coverage tests were failing because of this API usage that seems to pass on Py3k but not py2k Change-Id: Ic7ceb03c2660f411f487fce73ce5c2fa2c752031 --- diff --git a/lib/sqlalchemy/testing/provision.py b/lib/sqlalchemy/testing/provision.py index 18b856fb12..678def3278 100644 --- a/lib/sqlalchemy/testing/provision.py +++ b/lib/sqlalchemy/testing/provision.py @@ -169,7 +169,8 @@ def generate_driver_url(url, driver, query_str): new_url = url.set( drivername="%s+%s" % (backend, driver), ) - new_url = new_url.update_query_string(query_str) + if query_str: + new_url = new_url.update_query_string(query_str) try: new_url.get_dialect()