Automatic style fix

This commit is contained in:
robot-clickhouse 2023-12-27 14:40:20 +00:00
parent 0df796f617
commit d3404db055

View File

@ -1161,7 +1161,11 @@ class TestCase:
universal_newlines=True,
)
if self.show_whitespaces_in_diff:
sed_proc = Popen(["sed", "-e", "s/[ \t]\\+$/&$/g"], stdin=diff_proc.stdout, stdout=PIPE)
sed_proc = Popen(
["sed", "-e", "s/[ \t]\\+$/&$/g"],
stdin=diff_proc.stdout,
stdout=PIPE,
)
diff_proc.stdout.close() # Allow diff to receive a SIGPIPE if cat exits.
diff = sed_proc.communicate()[0].decode("utf-8", errors="ignore")
else: