From 57e2a955ec7e91d3362ece9ea4ddeaca34b3d6a9 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 17 Aug 2020 07:03:46 -0700 Subject: [PATCH] add some debug prints --- tests/stubtest_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/stubtest_test.py b/tests/stubtest_test.py index 31605e1dfcc9..bc1d73066ec7 100755 --- a/tests/stubtest_test.py +++ b/tests/stubtest_test.py @@ -9,6 +9,7 @@ typeshed CI. """ +print("run stubtest_test.py", __name__) from pathlib import Path import subprocess @@ -16,6 +17,7 @@ def run_stubtest(typeshed_dir: Path) -> int: + print("enter run_stubtest()") whitelist_dir = typeshed_dir / "tests" / "stubtest_whitelists" version_whitelist = "py{}{}.txt".format(sys.version_info.major, sys.version_info.minor) platform_whitelist = "{}.txt".format(sys.platform) @@ -55,6 +57,7 @@ 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("cmd", cmd) try: print(" ".join(cmd), file=sys.stderr) subprocess.run(cmd, check=True) @@ -74,4 +77,5 @@ def run_stubtest(typeshed_dir: Path) -> int: if __name__ == "__main__": + print("if __main__ block") sys.exit(run_stubtest(typeshed_dir=Path(".")))