~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2007-03-07 01:14:11 UTC
  • mfrom: (2321 +trunk)
  • mto: (2321.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: robertc@robertcollins.net-20070307011411-0cmmc8atx67v3nv7
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006, 2007 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
26
26
        """With -Derror, tracebacks are shown even for user errors"""
27
27
        out, err = self.run_bzr("-Derror", "branch", "nonexistent-location",
28
28
                retcode=3)
29
 
        # error output should contain a traceback
30
 
        self.assertContainsRe(err, "    raise errors\.NotBranchError")
31
 
 
32
 
 
 
29
        # error output should contain a traceback; we used to look for code in
 
30
        # here but it may be missing if the source is not in sync with the
 
31
        # pyc file.
 
32
        self.assertContainsRe(err, "Traceback \\(most recent call last\\)")