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