/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_debug.py

  • Committer: Martin Pool
  • Date: 2007-03-04 01:47:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2313.
  • Revision ID: mbp@sourcefrog.net-20070304014718-xwe549s6zskew9hx
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\\)")