~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_diff.py

  • Committer: Vincent Ladeuil
  • Date: 2017-01-17 15:02:46 UTC
  • mto: (6619.1.2 trunk)
  • mto: This revision was merged to the branch mainline in revision 6620.
  • Revision ID: v.ladeuil+lp@free.fr-20170117150246-ajkli2g5lh94s2c4
Fix test failure for recent versions of diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2012, 2014, 2016 Canonical Ltd
 
1
# Copyright (C) 2005-2012, 2014, 2016, 2017 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
313
313
        pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE,
314
314
                                     stdin=subprocess.PIPE)
315
315
        out, err = pipe.communicate()
316
 
        # Diff returns '2' on Binary files.
317
 
        self.assertEqual(2, pipe.returncode)
318
316
        # We should output whatever diff tells us, plus a trailing newline
319
317
        self.assertEqual(out.splitlines(True) + ['\n'], lines)
320
318