Changeset: 3e39482edab1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3e39482edab1
Modified Files:
common/stream/Tests/read_tests.py
common/stream/Tests/testdata.py
Branch: Jun2023
Log Message:
Close file explicitly so that it gets flushed.
diffs (19 lines):
diff --git a/common/stream/Tests/read_tests.py
b/common/stream/Tests/read_tests.py
--- a/common/stream/Tests/read_tests.py
+++ b/common/stream/Tests/read_tests.py
@@ -148,4 +148,3 @@ if __name__ == "__main__":
else:
print("Usage: python3 read_tests.py [TESTDATANAME]", file=sys.stderr)
sys.exit(1)
-
diff --git a/common/stream/Tests/testdata.py b/common/stream/Tests/testdata.py
--- a/common/stream/Tests/testdata.py
+++ b/common/stream/Tests/testdata.py
@@ -216,6 +216,7 @@ class TestFile:
else:
raise Exception("Unknown compression scheme: " + self.compression)
f.write(content)
+ f.close()
return filename
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]