205
205
# Make sure external_diff doesn't fail in the current LANG
206
206
lines = external_udiff_lines(['\x00foobar\n'], ['foo\x00bar\n'])
208
cmd = ['diff', '-u', 'old', 'new']
208
cmd = ['diff', '-u', '--binary', 'old', 'new']
209
209
open('old', 'wb').write('\x00foobar\n')
210
210
open('new', 'wb').write('foo\x00bar\n')
211
211
pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE,