You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This covers existing behaviours of `mitogen.master.scan_code_imports()` some of which are relied on, some not, but regardless weren't tested. Notably - Explicit relative imports return level > 0 - Imports inside `class` and `def` are excluded - Imports inside other blocks are included - Python 3.x prunes impossible if/else branches (previously unknown) It also - Decouples the test results from the implementation details of the unit test. - Fixes a missing import - Fixes at least one Python 2.4 incompatibility (use of with block) |
4 months ago | |
|---|---|---|
| .. | ||
| defaults.py | 4 months ago | |
| explicit_relative.py | 4 months ago | |
| has_absolute_import.py | 4 months ago | |
| scoped_class.py | 4 months ago | |
| scoped_function.py | 4 months ago | |
| scoped_if_else.py | 4 months ago | |
| scoped_try_except.py | 4 months ago | |