Add aiohttp and tomlkit to requirements-tests.txt (#8605)

This commit is contained in:
Alex Waygood
2022-08-24 23:08:54 +01:00
committed by GitHub
parent 3ab3711f42
commit 15f74295d2
3 changed files with 5 additions and 6 deletions

View File

@@ -60,11 +60,8 @@ def run_mypy_as_subprocess(directory: str, platform: str, version: str) -> Retur
"ignore-without-code",
"--namespace-packages",
]
if directory == "tests":
if platform == "win32":
command.extend(["--exclude", "tests/pytype_test.py"])
else:
command.append("--ignore-missing-imports")
if directory == "tests" and platform == "win32":
command.extend(["--exclude", "tests/pytype_test.py"])
result = subprocess.run(command, capture_output=True)
stdout, stderr = result.stdout, result.stderr
if stderr: