-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Ignore more exceptions in stubtest #11946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
) | ||
try: | ||
runtime_attr = getattr(runtime, mangled_entry) | ||
except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to log it somehow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure there's a good framework for that. Perhaps we can add a constant similar to MISSING, or fall back to a runtime value of Any if a non-AttriibuteError exception is thrown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, although it might make it possible for verify
to be called with verify(MISSING, MISSING, ...)
, which gives a not ideal error:
In [4]: print(list(verify(MISSING, MISSING, ["asdf", "fdsa"]))[0].get_description())
error: asdf.fdsa is not present in stub
Stub:
MISSING
Runtime:
MISSING
I don't think that would be new from this change, since it already did |
It is new. The way we source entries, they're guaranteed to exist either in the stub or at runtime. Now if we have something that isn't in the stubs, shows up in Actually, we should not be calling
|
Thanks, I applied that suggestion. |
Looks like githubstatus.com just acknowledged issues with Github Actions (I ran into issues on another repo as well) |
See python/typeshed#6801.