Changeset: b913939c1610 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b913939c1610
Modified Files:
        testing/sqltest.py
Branch: mtest
Log Message:

small fix


diffs (25 lines):

diff --git a/testing/sqltest.py b/testing/sqltest.py
--- a/testing/sqltest.py
+++ b/testing/sqltest.py
@@ -248,7 +248,7 @@ class TestCaseResult(object):
                         index = i
                         break
         if not sequence_match(data, self.data, index):
-            msg = '{}\nexpected to match query result starting at index={}, 
but it didn\'t'.format(piped_representation(data), index)
+            msg = '{}\nexpected to match query result starting at index={}, 
but it didn\'t'.format(piped_representation(data), index or 0)
             self.fail(msg, data=self.data)
         return self
 
@@ -380,9 +380,11 @@ class PyMonetDBTestResult(TestCaseResult
                         if crs.description:
                             self.data = crs.fetchall()
                             self.description = crs.description
-                except (pymonetdb.Error, ValueError) as e:
+                except pymonetdb.Error as e:
                     self.test_run_error = e
                     self.err_code, self.err_message = 
self._parse_error(e.args[0])
+                except (OSError, ValueError) as e:
+                    self.test_run_error = e
             self.did_run = True
         return self
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to