Skip to content

Commit

Permalink
try adding some debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibo-Joshi committed May 22, 2022
1 parent f9fb05e commit 01e6e3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def run_tests(changed: bool, names: List[str]) -> int:
exit_code = 0
for name in names:
try:
print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
print("installing requirements from", str(ptbcontrib_path / name / "requirements.txt"))
subprocess.check_call( # nosec
[
sys.executable,
Expand All @@ -85,13 +87,15 @@ def run_tests(changed: bool, names: List[str]) -> int:
str(ptbcontrib_path / name / "requirements.txt"),
]
)
print("done. Checking version")

result = subprocess.run( # nosec
[sys.executable, "-m", "telegram"],
capture_output=True,
text=True,
check=True,
)
print("stdout:", result.stdout)
if (
result.stdout
and result.stdout.startswith("python-telegram-bot 13")
Expand Down

0 comments on commit 01e6e3c

Please sign in to comment.