From 09511fd72f3d5154c72f17511f32e3cd74cff750 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Wed, 19 Oct 2022 21:16:05 +0300 Subject: [PATCH] `print` cannot raise `subprocess.CalledProcessError` (#8933) --- tests/stubtest_stdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/stubtest_stdlib.py b/tests/stubtest_stdlib.py index bc0830499..c008353cd 100755 --- a/tests/stubtest_stdlib.py +++ b/tests/stubtest_stdlib.py @@ -38,8 +38,8 @@ def run_stubtest(typeshed_dir: Path) -> int: # As discussed in https://github.com/python/typeshed/issues/3693, we only aim for # positional-only arg accuracy for the latest Python version. cmd += ["--ignore-positional-only"] + print(" ".join(cmd), file=sys.stderr) try: - print(" ".join(cmd), file=sys.stderr) subprocess.run(cmd, check=True) except subprocess.CalledProcessError as e: print(