Changeset: 86e1e0413567 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/86e1e0413567
Modified Files:
        sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py
Branch: Dec2023
Log Message:

Tests should never just tell you what was expected.  Give actual results too!


diffs (13 lines):

diff --git 
a/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py 
b/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py
--- a/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py
+++ b/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py
@@ -36,7 +36,8 @@ class Client(threading.Thread):
 
     def output(self):
         if self.error == 0 and self.result != [(1,), (2,), (3,), (4,), (5,), 
(6,), (7,), (8,), (9,), (0,)]:
-            sys.stderr.write('[(1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), 
(9,), (0,)] expected')
+            print(f'received: {self.result}', file=sys.stderr)
+            print('expected: [(1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), 
(9,), (0,)]', file=sys.stderr)
 
 def main():
         C = []
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to