#NEWLINE# def test_constraints_local_install_causes_error( script , data ) : #NEWLINE# #INDENT# script . scratch_path . join ( 'constraints.txt' ) . write ( 'singlemodule==0.0.0' ) #NEWLINE# to_install = data . src . join ( 'singlemodule' ) #NEWLINE# result = script . pip ( 'install' , '--no-index' , '-f' , data . find_links , '-c' , ( script . scratch_path / 'constraints.txt' ) , to_install , expect_error = True ) #NEWLINE# assert ( 'Could not satisfy constraints for' in result . stderr )