Changeset: 29feef464172 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=29feef464172
Modified Files:
sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
Branch: copybinary
Log Message:
Fix test binary_copy_into.Bug-3345
diffs (15 lines):
diff --git a/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
b/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
--- a/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
+++ b/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
@@ -19,7 +19,9 @@ try:
os.path.join(dst, 'n_regionkey.sorted').replace('\\', '\\\\')))
sys.stderr.write('Exception expected')
except pymonetdb.exceptions.DatabaseError as e:
- if 'Binary files for table \'bug\' have inconsistent counts' not in str(e):
- sys.stderr.write('Exception: Binary files for table \'bug\' have
inconsistent counts expected')
+ expected = "42000!inconsistent row count"
+ if expected not in str(e):
+ print(f'Got exception: {str(e).rstrip()}', file=sys.stderr)
+ print(f'Expected something containing: {expected}', file=sys.stderr)
cur.close()
cli.close()
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list