/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_commit.py

  • Committer: Matt Giuca
  • Date: 2011-11-20 01:50:38 UTC
  • mto: This revision was merged to the branch mainline in revision 6282.
  • Revision ID: matt.giuca@gmail.com-20111120015038-mln5c1in153786le
bzrlib.timestamp: Better error message if the string is missing a timezone offset.
If it is a valid time stamp but without an offset, the error message specifically mentions that that is the problem.
This gives better feedback when using --commit-time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
714
714
            err, "bzr: ERROR: Could not parse --commit-time:")
715
715
        # Test that it is actually checking and does not simply crash with
716
716
        # some other exception
717
 
        self.assertContainsString(err, "does not match format")
 
717
        self.assertContainsString(err, "missing a timezone offset")
718
718
 
719
719
    def test_partial_commit_with_renames_in_tree(self):
720
720
        # this test illustrates bug #140419