~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to blackbox.py

adjust tests for the 0.7 diff behavioural change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        self.runbzr('add')
37
37
        self.runbzr('commit -m hello')
38
38
        file('myfile', 'wb').write('goodbye')
39
 
        file('mypatch', 'wb').write(self.runbzr('diff', backtick=1))
 
39
        file('mypatch', 'wb').write(self.runbzr('diff', retcode=1, backtick=1))
40
40
        self.runbzr('revert')
41
41
        assert file('myfile', 'rb').read() == 'hello'
42
42
        self.runbzr('patch mypatch')