Commit e1f3eea
committed
fix incorrect basenames caused by a lack of __init__.py
The problem was caused by
pylint-dev/astroid#2589, changing the
package discovery.
Since tests/reporters/ didn't have `__init__.py`, the new package
discovery would resolve module names as one level higher than
desired (so, `unittest_reporting` instead of
`reporters.unittest_reporting`). We're fixing this, by adding the
appropriate `__init__.py`.
We're also adding the `ModuleDescriptionDict` corresponding to the new
`__init__.py` to the `expand_modules` tests.
The changes in `expand_modules.py` are small optimizations mostly done
in the process of understanding what is happening there.1 parent e03d048 commit e1f3eea
File tree
3 files changed
+29
-25
lines changed- pylint/lint
- tests
- lint
- reporters
3 files changed
+29
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
151 | 148 | | |
152 | | - | |
153 | | - | |
| 149 | + | |
154 | 150 | | |
155 | 151 | | |
156 | 152 | | |
157 | | - | |
| 153 | + | |
158 | 154 | | |
159 | 155 | | |
160 | 156 | | |
161 | 157 | | |
162 | | - | |
163 | | - | |
164 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
165 | 161 | | |
166 | 162 | | |
167 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 130 | + | |
| 131 | + | |
134 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
135 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
136 | 144 | | |
137 | 145 | | |
138 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
139 | 150 | | |
140 | 151 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
| |||
Whitespace-only changes.
0 commit comments