Changeset: 8e5135a7fbde for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8e5135a7fbde
Modified Files:
sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
Branch: copyfaster
Log Message:
Restore quoting on old Pythons
diffs (13 lines):
diff --git a/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
b/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
--- a/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
+++ b/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
@@ -15,7 +15,8 @@ try:
shlexjoin = shlex.join
except AttributeError:
# for old Python (pre 3.8)
- shlexjoin = ' '.join
+ def shlexjoin(cmd):
+ return ' '.join(shlex.quote(a) for a in cmd)
def verify_output(stream, actual, expected):
diff = list(difflib.unified_diff(
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]