mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Improve error message of Unrecognised platforms specified (#9283)
This commit is contained in:
@@ -193,7 +193,7 @@ def check_metadata() -> None:
|
||||
specified_stubtest_platforms = set(tool_stubtest.get("platforms", []))
|
||||
assert (
|
||||
specified_stubtest_platforms <= supported_stubtest_platforms
|
||||
), f"Unrecognised platforms specified: {supported_stubtest_platforms - specified_stubtest_platforms}"
|
||||
), f"Unrecognised platforms specified: {supported_stubtest_platforms - specified_stubtest_platforms} for {distribution}"
|
||||
|
||||
# Check that only specified platforms install packages:
|
||||
for supported_plat in supported_stubtest_platforms:
|
||||
|
||||
Reference in New Issue
Block a user