Changeset: 777a5580054c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=777a5580054c
Modified Files:
        sql/test/remote/Tests/invalid_creds.SQL.py.in
Branch: Apr2019
Log Message:

Port test to Python 3.


diffs (17 lines):

diff --git a/sql/test/remote/Tests/invalid_creds.SQL.py.in 
b/sql/test/remote/Tests/invalid_creds.SQL.py.in
--- a/sql/test/remote/Tests/invalid_creds.SQL.py.in
+++ b/sql/test/remote/Tests/invalid_creds.SQL.py.in
@@ -123,11 +123,11 @@ try:
     print("{} rows in remote table".format(c.fetchall()[0][0]))
 except pymonetdb.OperationalError as e1:
     print("OperationalError:", file=sys.stderr)
-    print("# " + e1.message, file=sys.stderr)
+    print("# " + e1.args[0], file=sys.stderr)
 
 try:
     c.execute("SELECT COUNT(*) FROM ratings")
     print("{} rows in merge table".format(c.fetchall()[0][0]))
 except pymonetdb.OperationalError as e2:
     print("OperationalError:", file=sys.stderr)
-    print("# " + e2.message, file=sys.stderr)
+    print("# " + e2.args[0], file=sys.stderr)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to