forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stubtest script to compare imported module and stub (python#3036)
* test_stub now returns a list of errors Error defined as NamedTuple(name, error_type, message). stubtest no longer errors when there is no stubfile * Make stubtest runnable from any directory Instead of calling the dumpmodule script, do a relative import and call the function directly. * record line number in Error object, blacklist unittest.mock unittest.mock problem related to https://bugs.python.org/issue25532 * record types in Error object, make verify_node recursive also changed dump['attrs'] to a dict * Remove '--all_stdlib' flag from stubtest. doing this automatically depends on module stdlib_list, which is not suitable for master branch. * Refactored verify_node to single dispatch recursion
- Loading branch information
1 parent
eb39308
commit f07c8be
Showing
2 changed files
with
184 additions
and
99 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