Skip to content

Commit

Permalink
Allow test runner to catch pyparsing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillies committed Jun 22, 2023
1 parent fb5868d commit 728cd6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_rio_calc.py
Expand Up @@ -6,10 +6,10 @@


def test_err(tmpdir, runner):
outfile = str(tmpdir.join('out.tif'))
result = runner.invoke(main_group, ['calc'] + [
'($ 0.1 (read 1))', 'tests/data/shade.tif', outfile],
catch_exceptions=False)
outfile = str(tmpdir.join("out.tif"))
result = runner.invoke(
main_group, ["calc"] + ["($ 0.1 (read 1))", "tests/data/shade.tif", outfile]
)
assert result.exit_code == 1


Expand Down

0 comments on commit 728cd6e

Please sign in to comment.