Call pytest as python3 -m pytest (#101185)

This commit is contained in:
Ville Skyttä
2023-10-06 14:22:56 +03:00
committed by GitHub
parent 425d961489
commit f7aad4a9e6
3 changed files with 20 additions and 6 deletions

View File

@@ -103,9 +103,16 @@ def main():
if args.develop:
print("Running tests")
print(f"$ pytest -vvv tests/components/{info.domain}")
print(f"$ python3 -m pytest -vvv tests/components/{info.domain}")
subprocess.run(
["pytest", "-vvv", f"tests/components/{info.domain}"], check=True
[
"python3",
"-m",
"pytest",
"-vvv",
f"tests/components/{info.domain}",
],
check=True,
)
print()