~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-04 03:18:33 UTC
  • mfrom: (2308.1.1 derror)
  • Revision ID: pqm@pqm.ubuntu.com-20070304031833-38a609e7e3fb3c5b
(mbp, trivial) Avoid false failure of test_dash_derror

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\\)")