You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do we need --specified-platforms-only in stubtest_third_party? #13641
When this option is specified (which it is when running in CI), stubtest won't run when a platform is not specified in METADATA.toml. The test is marked as "skipped". When it's not specified (the default), stubtest will run and will most likely case an error.
I noticed this when running stubtest_third_party.py locally on my Linux system and it errored on pywin32.
I suggest we either:
Remove that option altogether and always skip stubtest for stubs not specified in METADATA.toml; or
reverse the logic so that those tests are skipped by default and only generate errors when an explicit option is given.
Activity
AlexWaygood commentedon Mar 17, 2025
Added in #9173; it may be useful to review the discussion in that PR thread
srittau commentedon Mar 17, 2025
The original comment by @Avasam was in #8923 (comment):
Which is of course true. I think I slightly misunderstood the purpose of the flag. So another solution:
tool.stubtest.platforms, if it exists.Fix stubtest_third_party.py on linux
Fix stubtest_third_party.py on linux