git @ Cat's Eye Technologies Falderal / fix-single-quote-escaping
Make test pass. Chris Pressey 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
606606
607607 if '%(test-input-text)' in self.command:
608608 # escape all single quotes in input
609 body = re.sub(r"'", r"\'", body)
609 input = re.sub(r"'", r"\'", input)
610610 # replace all occurrences in command
611611 command = command.replace('%(test-input-text)', input)
612612 command_contained_test_input_text = True