diff options
| author | Christoph Berg <myon@debian.org> | 2022-11-06 21:01:26 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2022-11-06 21:01:26 +0100 |
| commit | 40c9ab872fbdd8b7d2b1cb630ea324b7a3b01e4a (patch) | |
| tree | 60edba4b7a503cb639f603b9239192321bd78f6f /tests/run_tests.py | |
| parent | a1b9c5b655ec5b0bba958c41ebdabffb564eb7ee (diff) | |
| parent | 14581c70e561f9f350a4d5ad86924a5d466028d4 (diff) | |
Update upstream source from tag 'upstream/20211015+py3'
Update to upstream version '20211015+py3'
with Debian dir 0e6663ccd1c5a83c6b464f7b78532a8a4d2b0f98
Diffstat (limited to 'tests/run_tests.py')
| -rw-r--r--[-rwxr-xr-x] | tests/run_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py index e13fd8c..195f4c4 100755..100644 --- 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 = """ <html> <head> @@ -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() |
