Changeset: d168c777105d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d168c777105d
Modified Files:
        testing/sqltest.py
Branch: default
Log Message:

sqltest fix


diffs (13 lines):

diff --git a/testing/sqltest.py b/testing/sqltest.py
--- a/testing/sqltest.py
+++ b/testing/sqltest.py
@@ -299,6 +299,9 @@ class TestCaseResult(object):
         if len(data) == 0 and len(self.data) > 0:
             msg = 'expected empty result!'
             self.fail(msg, data=self.data)
+        if len(data) > 0 and len(self.data) == 0:
+            msg = 'expected result but received empty!'
+            self.fail(msg, data=self.data)
 
         data = list(map(mapfn, data))
         if index is None:
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to