Changeset: e55267399f84 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/e55267399f84 Modified Files: sql/test/BugTracker-2024/Tests/7536-mclient-forgets-to-flush.SQL.py Branch: Aug2024 Log Message:
Simplify mclient flush test diffs (34 lines): diff --git a/sql/test/BugTracker-2024/Tests/7536-mclient-forgets-to-flush.SQL.py b/sql/test/BugTracker-2024/Tests/7536-mclient-forgets-to-flush.SQL.py --- a/sql/test/BugTracker-2024/Tests/7536-mclient-forgets-to-flush.SQL.py +++ b/sql/test/BugTracker-2024/Tests/7536-mclient-forgets-to-flush.SQL.py @@ -6,7 +6,7 @@ import subprocess # This SQL script redirects the output to a file (the %s). # We will check that all output arrives there, even if it's a gzipped file. -SCRIPT = f"""\ +SCRIPT = """\ \>%s SELECT 'Donald Knuth'; """ @@ -19,16 +19,13 @@ with tempfile.TemporaryDirectory('mtest' with open(inputfile, 'w') as f: f.write(SCRIPT % outputfile) - with open(inputfile) as f: - subprocess.check_call([ - 'mclient', '-i', - inputfile, - '-p', os.environ['MAPIPORT'], - ]) + subprocess.check_call([ + 'mclient', '-i', + '-p', os.environ['MAPIPORT'], + inputfile, + ]) with gzip.open(outputfile, 'rt', encoding='utf-8') as f: content = f.read() - # print(content) - assert 'Donald Knuth' in content _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org