#NEWLINE# def test_blockysize_guard( tmpdir ) : #NEWLINE# #INDENT# "blockysize can't be greater than image height." #NEWLINE# tiffname = str ( tmpdir . join ( 'foo.tif' ) ) #NEWLINE# with pytest . raises ( ValueError ) : #NEWLINE# #INDENT# _ = rasterio . open ( tiffname , 'w' , ** default_gtiff_profile ( count = 1 , width = 256 , height = 128 ) )