diff options
author | Timofey <t.danshin@corp.mail.ru> | 2015-07-29 13:03:08 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:57:59 +0300 |
commit | 0dbeb5eb166f920db399ed8d6f80789d6a4827ae (patch) | |
tree | 55bf0e4a1a1732755201a23ae229abae50c96329 /tools | |
parent | c05797f427305d6c45b3d8ee1644e7cd9f9831f5 (diff) |
Hotfix for python
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_desktop_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run_desktop_tests.py b/tools/run_desktop_tests.py index 7fe1adf7dd..0e5572c4b5 100755 --- a/tools/run_desktop_tests.py +++ b/tools/run_desktop_tests.py @@ -150,7 +150,7 @@ class TestRunner: def log_exec_file(self, filename, result=None): logstring = "BEGIN" if result is None else "END" #can be 0 or None. If we omit the explicit check for None, we get wrong result - resstring = (" | result: {returncode}".format(returncode=result) if result else "") + resstring = (" | result: {returncode}".format(returncode=result) if result is not None else "") with open(self.logfile, "a") as logf: logf.write("\n{logstring}: {filename}{resstring}\n".format(logstring=logstring, filename=filename, resstring=resstring)) |