summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/lutil.py
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2020-11-25 09:32:51 +0000
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-11-25 16:31:42 +0000
commit0e232bb883644c8bf7c82a6f6fbaba91ed5af91a (patch)
tree9b5c058129199b51c40306cc14545bf36bfc4da6 /tests/topotests/lib/lutil.py
parent6cb6c403f1895553d8637c0e8d219cd632455403 (diff)
topotests: python3, fix error ValueError: can't have unbuffered text I/O
This error occurs when passing some 0 values to open() extra argument. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'tests/topotests/lib/lutil.py')
-rw-r--r--tests/topotests/lib/lutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/lib/lutil.py b/tests/topotests/lib/lutil.py
index 0b46363edd..dcf1d010b1 100644
--- a/tests/topotests/lib/lutil.py
+++ b/tests/topotests/lib/lutil.py
@@ -58,14 +58,14 @@ class lUtil:
def log(self, str, level=6):
if self.l_level > 0:
if self.fout == "":
- self.fout = open(self.fout_name, "w", 0)
+ self.fout = open(self.fout_name, "w")
self.fout.write(str + "\n")
if level <= self.l_level:
print(str)
def summary(self, str):
if self.fsum == "":
- self.fsum = open(self.fsum_name, "w", 0)
+ self.fsum = open(self.fsum_name, "w")
self.fsum.write(
"\
******************************************************************************\n"