diff --git a/stubs/networkx/METADATA.toml b/stubs/networkx/METADATA.toml index d572cfc2ed88..23bd90b76b07 100644 --- a/stubs/networkx/METADATA.toml +++ b/stubs/networkx/METADATA.toml @@ -1,4 +1,4 @@ -version = "3.2.1" +version = "3.3" upstream_repository = "https://github.com/networkx/networkx" requires = ["numpy"] partial_stub = true diff --git a/tests/stubtest_third_party.py b/tests/stubtest_third_party.py index e2e27fcafa81..7fbd940e9773 100755 --- a/tests/stubtest_third_party.py +++ b/tests/stubtest_third_party.py @@ -134,11 +134,11 @@ def run_stubtest( print_error("fail\n") print_divider() - print("Commands run:") + print("Commands run:", file=sys.stderr) print_commands(dist, pip_cmd, stubtest_cmd, mypypath) print_divider() - print("Command output:\n") + print("Command output:\n", file=sys.stderr) print_command_output(e) print_divider() diff --git a/tests/utils.py b/tests/utils.py index 2bd58d632cd3..9ed68f90c16f 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -41,19 +41,19 @@ def strip_comments(text: str) -> str: def print_command(cmd: str | Iterable[str]) -> None: if not isinstance(cmd, str): cmd = " ".join(cmd) - print(colored(f"Running: {cmd}", "blue")) + print(colored(f"Running: {cmd}", "blue"), file=sys.stderr) def print_error(error: str, end: str = "\n", fix_path: tuple[str, str] = ("", "")) -> None: error_split = error.split("\n") old, new = fix_path for line in error_split[:-1]: - print(colored(line.replace(old, new), "red")) - print(colored(error_split[-1], "red"), end=end) + print(colored(line.replace(old, new), "red"), file=sys.stderr) + print(colored(error_split[-1], "red"), end=end, file=sys.stderr) def print_success_msg() -> None: - print(colored("success", "green")) + print(colored("success", "green"), file=sys.stderr) def print_divider() -> None: @@ -61,7 +61,9 @@ def print_divider() -> None: This can be useful to divide terminal output into separate sections. """ - print("*" * 70) + print(file=sys.stderr) + print("*" * 70, file=sys.stderr) + print(file=sys.stderr) # ====================================================================