Commit aed32a0
committed
Simplify TestProgram._get_runner further
This try-except was only needed if we provide a test runner (via the
testRunner parameter) that was not an instance of TestToolsTestRunner.
While upstream might need to support this [1], we do not. Remove the
fallback.
[1] https://github.com/python/cpython/blob/v3.10.0/Lib/unittest/main.py#L251-L270
Signed-off-by: Stephen Finucane <stephen@that.guru>1 parent 375c236 commit aed32a0
1 file changed
+7
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
286 | 276 | | |
287 | 277 | | |
288 | 278 | | |
| |||
0 commit comments