/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

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
17
17
"""Blackbox tests for -D debug options"""
18
18
 
19
19
import os
 
20
import signal
 
21
import subprocess
 
22
import sys
 
23
import time
20
24
 
21
 
from bzrlib.tests import TestCase
 
25
from bzrlib.tests import TestCase, TestSkipped
22
26
 
23
27
class TestDebugOption(TestCase):
24
28
 
26
30
        """With -Derror, tracebacks are shown even for user errors"""
27
31
        out, err = self.run_bzr("-Derror", "branch", "nonexistent-location",
28
32
                retcode=3)
29
 
        # error output should contain a traceback
30
 
        self.assertContainsRe(err, "    raise errors\.NotBranchError")
31
 
 
32
 
 
 
33
        # error output should contain a traceback; we used to look for code in
 
34
        # here but it may be missing if the source is not in sync with the
 
35
        # pyc file.
 
36
        self.assertContainsRe(err, "Traceback \\(most recent call last\\)")