Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit196cfbe
committed
Clean up test_util, reorganizing for readability
- Slightly improve import sorting, grouping, and formatting.- Move the cygpath pairs parameters into the test class, so they can be immediately above the tests that use them. This was almost the case in the past, but stopped being the case when helpers for some new tests above those were introduced (and those helpers can't be moved inside the class without extra complexity).- Rename TestIterableMember to _Member, so it is no longer named as a test class. The unittest framework wouldn't consider it one, since it doesn't derive from unittest.TestCase, but the pytest runner, which we're actually using, does. More importanly (since it has no test methods anyway), this makes clear to humans that it is a helper class for tests, rather than a class of tests.- Improve the style of _Member, and have its __repr__ show the actual class of the instance, so if future tests ever use a derived class of it--or if its name ever changes again--the type name in the repr will be correct.- Remove the setup method (of TestUtils). It looks like this may at one time have been intended as a setUp method (note the case difference), but it is unused and there doesn't seem to be any attempt to use the instance attribute it was setting.- Use R"" instead of r"" for raw strings representing Windows paths, so that some editors (at least VS Code) refrain from highlighting their contents as regular expressions.- Other very minor reformatting and slight comment rewording.1 parent7dd5904 commit196cfbe
1 file changed
+46
-55
lines changedLines changed: 46 additions & 55 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
| |||
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
16 |
| - | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 | 31 |
| |
36 | 32 |
| |
37 | 33 |
| |
| |||
43 | 39 |
| |
44 | 40 |
| |
45 | 41 |
| |
| 42 | + | |
46 | 43 |
| |
47 | 44 |
| |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
| 45 | + | |
| 46 | + | |
73 | 47 |
| |
74 |
| - | |
| 48 | + | |
75 | 49 |
| |
76 | 50 |
| |
77 | 51 |
| |
78 | 52 |
| |
79 | 53 |
| |
80 |
| - | |
| 54 | + | |
81 | 55 |
| |
82 | 56 |
| |
83 | 57 |
| |
| |||
106 | 80 |
| |
107 | 81 |
| |
108 | 82 |
| |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 | 83 |
| |
117 | 84 |
| |
118 | 85 |
| |
| |||
131 | 98 |
| |
132 | 99 |
| |
133 | 100 |
| |
134 |
| - | |
| 101 | + | |
135 | 102 |
| |
136 | 103 |
| |
137 | 104 |
| |
| |||
179 | 146 |
| |
180 | 147 |
| |
181 | 148 |
| |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
182 | 170 |
| |
183 | 171 |
| |
184 | 172 |
| |
| |||
192 | 180 |
| |
193 | 181 |
| |
194 | 182 |
| |
195 |
| - | |
| 183 | + | |
196 | 184 |
| |
197 | 185 |
| |
198 | 186 |
| |
199 | 187 |
| |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
205 | 193 |
| |
206 | 194 |
| |
207 | 195 |
| |
| |||
210 | 198 |
| |
211 | 199 |
| |
212 | 200 |
| |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
219 | 207 |
| |
220 | 208 |
| |
221 | 209 |
| |
| |||
380 | 368 |
| |
381 | 369 |
| |
382 | 370 |
| |
383 |
| - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
384 | 375 |
| |
385 | 376 |
| |
386 | 377 |
| |
387 | 378 |
| |
388 | 379 |
| |
389 | 380 |
| |
390 |
| - | |
391 |
| - | |
| 381 | + | |
| 382 | + | |
392 | 383 |
| |
393 | 384 |
| |
394 | 385 |
| |
|
0 commit comments
Comments
(0)