#NEWLINE# def test_explicit_instance_paths( modules_tmpdir ) : #NEWLINE# #INDENT# with pytest . raises ( ValueError ) as excinfo : #NEWLINE# #INDENT# flask . Flask ( __name__ , instance_path = 'instance' ) #NEWLINE# #UNINDENT# assert ( 'must be absolute' in str ( excinfo . value ) ) #NEWLINE# app = flask . Flask ( __name__ , instance_path = str ( modules_tmpdir ) ) #NEWLINE# assert ( app . instance_path == str ( modules_tmpdir ) )