mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Call pytest as python3 -m pytest (#101185)
This commit is contained in:
@@ -223,7 +223,14 @@ async def main():
|
||||
return
|
||||
|
||||
code, _ = await async_exec(
|
||||
"pytest", "-vv", "--force-sugar", "--", *test_files, display=True
|
||||
"python3",
|
||||
"-m",
|
||||
"pytest",
|
||||
"-vv",
|
||||
"--force-sugar",
|
||||
"--",
|
||||
*test_files,
|
||||
display=True,
|
||||
)
|
||||
print("=============================")
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user