-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stubtest: fix false negative with dunder methods, small changes (#8886)
* stubtest: use stub.name over runtime.__name__ Seems to be a little more reliable * stubtest: remove unnecessary code I can no longer repro any of the behaviour related to distutils.command. I found one case it can come up involving builtins, but overall I think this code is just simpler like this. * stubtest: fix false negatives If the stub doesn't list dunder methods, we wouldn't check them earlier. There are a lot of false negatives due to this. * teststubtest: add a test for the previous commit Also covers some of the MRO logic in verify_typeinfo Co-authored-by: hauntsaninja <>
- Loading branch information
1 parent
10195b8
commit b3d4398
Showing
2 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters