Changeset: d55898a2e6ea for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d55898a2e6ea
Modified Files:
        sql/test/bincopy/Tests/bincopy_support.py
Branch: copybinary
Log Message:

Fix problem for tests that use certain testdata more than once


diffs (23 lines):

diff --git a/sql/test/bincopy/Tests/bincopy_support.py 
b/sql/test/bincopy/Tests/bincopy_support.py
--- a/sql/test/bincopy/Tests/bincopy_support.py
+++ b/sql/test/bincopy/Tests/bincopy_support.py
@@ -19,7 +19,7 @@ BINCOPY_FILES = os.environ.get('BINCOPY_
 class DataMaker:
     def __init__(self, side):
         self.side_clause = 'ON ' + side.upper()
-        self.work_list = []
+        self.work_list = set()
 
     def substitute_match(self, match):
         var = match.group(1)
@@ -29,8 +29,8 @@ class DataMaker:
         dst_filename = os.path.join(BINCOPY_FILES, base)
         tmp_filename = os.path.join(BINCOPY_FILES, 'tmp_' + base)
         if not os.path.isfile(dst_filename):
-            cmd = ["bincopydata", var, str(NRECS), tmp_filename]
-            self.work_list.append( (cmd, tmp_filename, dst_filename))
+            cmd = ("bincopydata", var, str(NRECS), tmp_filename)
+            self.work_list.add( (cmd, tmp_filename, dst_filename))
         return f"R'{dst_filename}'"
 
     def generate_files(self):
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to