From 14581c70e561f9f350a4d5ad86924a5d466028d4 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sun, 6 Nov 2022 21:01:21 +0100 Subject: New upstream version 20211015+py3 --- tests/run_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 tests/run_tests.py (limited to 'tests') diff --git a/tests/run_tests.py b/tests/run_tests.py old mode 100755 new mode 100644 index e13fd8c..195f4c4 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -1120,7 +1120,7 @@ class TestOutputHTML(TestOutput): def prepare(self): print("Writing to %s" % self._filename, end=' ') sys.stdout.flush() - self._out = file(self._filename, "w") + self._out = open(self._filename, "w") s = """ @@ -1204,7 +1204,7 @@ class TestRunner: def log(self, rclass, tc, e): fn = "logs/%s_%s.log" % (directory.radio_class_id(rclass), tc) - log = file(fn, "a") + log = open(fn, "a") print("---- Begin test %s ----" % tc, file=log) log.write(e.get_detail()) print(file=log) @@ -1344,7 +1344,7 @@ Available tests: stdout = sys.stdout if not os.path.exists("logs"): os.mkdir("logs") - sys.stdout = file("logs/verbose", "w") + sys.stdout = open("logs/verbose", "w") test_out = TestOutputANSI(stdout) test_out.prepare() -- cgit v1.2.3