Commit a0bac7b
committed
Fix test_command_not_found_error to expect FileNotFoundError on Linux
subprocess.run() raises FileNotFoundError on Linux when the command
doesn't exist, rather than returning a result with non-zero exit code.
Changed test to use pytest.raises(FileNotFoundError) instead of
checking result.returncode.
Fixes final Ubuntu CI test failure.1 parent 1c4e376 commit a0bac7b
1 file changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
342 | 341 | | |
343 | 342 | | |
344 | 343 | | |
| |||
0 commit comments