Skip to content

Commit c2fd2d0

Browse files
committed
Fix linter
1 parent 733f69e commit c2fd2d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ def assertBinaryEqual(self, file1, file2):
16971697
self.assertEqual(read_binary(file1),
16981698
read_binary(file2))
16991699

1700-
def checkOutputSizes(self, outputs: List[str], metadata={}):
1700+
def checkOutputSizes(self, outputs: List[str], metadata=None):
17011701
test_name = self.id().split('.')[-1]
17021702
results_file = test_file('code_size', test_name + '.json')
17031703

@@ -1754,7 +1754,8 @@ def print_diff(title, actual, expected):
17541754
print_diff('Total output size', total_output_size, total_expected_size)
17551755
print_diff('Total output size gzipped', total_output_size_gz, total_expected_size_gz)
17561756

1757-
obtained_results.update(metadata)
1757+
if metadata is not None:
1758+
obtained_results.update(metadata)
17581759

17591760
if EMTEST_REBASELINE:
17601761
create_file(results_file, json.dumps(obtained_results, indent=2) + '\n', absolute=True)

0 commit comments

Comments
 (0)