mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 06:35:22 +08:00
Disable uwsgi, pyaudio, jack-client stubtest on macOS (#11821)
This commit is contained in:
@@ -57,7 +57,7 @@ class StubtestSettings:
|
||||
Don't construct instances directly; use the `read_stubtest_settings` function.
|
||||
"""
|
||||
|
||||
skipped: bool
|
||||
skip: bool
|
||||
apt_dependencies: list[str]
|
||||
brew_dependencies: list[str]
|
||||
choco_dependencies: list[str]
|
||||
@@ -79,7 +79,7 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
|
||||
with Path("stubs", distribution, "METADATA.toml").open("rb") as f:
|
||||
data: dict[str, object] = tomli.load(f).get("tool", {}).get("stubtest", {})
|
||||
|
||||
skipped: object = data.get("skip", False)
|
||||
skip: object = data.get("skip", False)
|
||||
apt_dependencies: object = data.get("apt_dependencies", [])
|
||||
brew_dependencies: object = data.get("brew_dependencies", [])
|
||||
choco_dependencies: object = data.get("choco_dependencies", [])
|
||||
@@ -88,7 +88,7 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
|
||||
specified_platforms: object = data.get("platforms", ["linux"])
|
||||
stubtest_requirements: object = data.get("stubtest_requirements", [])
|
||||
|
||||
assert type(skipped) is bool
|
||||
assert type(skip) is bool
|
||||
assert type(ignore_missing_stub) is bool
|
||||
|
||||
# It doesn't work for type-narrowing if we use a for loop here...
|
||||
@@ -110,7 +110,7 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
|
||||
)
|
||||
|
||||
return StubtestSettings(
|
||||
skipped=skipped,
|
||||
skip=skip,
|
||||
apt_dependencies=apt_dependencies,
|
||||
brew_dependencies=brew_dependencies,
|
||||
choco_dependencies=choco_dependencies,
|
||||
|
||||
@@ -27,7 +27,7 @@ def run_stubtest(
|
||||
print(f"{dist_name}... ", end="", flush=True)
|
||||
|
||||
stubtest_settings = metadata.stubtest_settings
|
||||
if stubtest_settings.skipped:
|
||||
if stubtest_settings.skip:
|
||||
print(colored("skipping", "yellow"))
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user