Commit 2fd8f3e9 authored by Samuel GAIST's avatar Samuel GAIST

[database] Fix print statements

parent acbdc1d5
......@@ -723,7 +723,6 @@ class DatabaseTester:
else:
self.run(self.outputs_declaration.keys())
print
def determine_regular_intervals(self, outputs_declaration):
outputs = OutputList()
......@@ -746,8 +745,9 @@ class DatabaseTester:
if len(connected_outputs) == 0:
return
print "Testing '%s', with %d output(s): %s" % (self.name, len(connected_outputs),
', '.join(connected_outputs))
print("Testing '{}', with {} output(s): {}".format(
self.name, len(connected_outputs),
', '.join(connected_outputs)))
# Create the mock outputs
connected_outputs = dict([ x for x in self.outputs_declaration.items()
......@@ -811,7 +811,8 @@ class DatabaseTester:
# Check the number of data produced on the regular outputs
for name in connected_outputs.keys():
print ' - %s: %d data' % (name, len(outputs[name].written_data))
print(' - {}: {} data'.format(name,
len(outputs[name].written_data)))
if name not in self.irregular_outputs:
assert(len(outputs[name].written_data) == next_index / connected_outputs[name])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment