Skip to content

Commit

Permalink
py-format
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jun 28, 2023
1 parent f80d434 commit 23cf189
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/run_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ def run_py_example(path: str, viewer_port: int | None = None, wait: bool = True,
wait=wait,
)


# stdout and stderr
def output_from_process(process: Any) -> str:
return process.communicate()[0].decode("utf-8").rstrip()


def get_free_port() -> int:
with socket.socket() as s:
s.bind(("", 0))
Expand Down Expand Up @@ -102,7 +104,7 @@ def collect_examples(fast: bool) -> list[str]:


def print_example_output(path: str, example: Any) -> None:
output = example.communicate()[0].decode('utf-8').rstrip()
output = example.communicate()[0].decode("utf-8").rstrip()
print(f"\nExample {path}:\n{output}\n")


Expand Down

0 comments on commit 23cf189

Please sign in to comment.