diff options
| author | Christoph Berg <myon@debian.org> | 2022-11-06 21:01:21 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2022-11-06 21:01:21 +0100 |
| commit | 14581c70e561f9f350a4d5ad86924a5d466028d4 (patch) | |
| tree | 64306df1c9a8980acbb455c2d4d794658764f6e1 /tests | |
| parent | c2bdd8f8d96bf5329672163cc0905a22589d26d3 (diff) | |
New upstream version 20211015+py3upstream/20211015+py3
Diffstat (limited to 'tests')
| -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() |
