~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_crash.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-04 14:32:59 UTC
  • mfrom: (5005.1.1 integration2)
  • Revision ID: pqm@pqm.ubuntu.com-20100204143259-91x2d08a31yfeqnm
(vila) Avoid infinite recursion when probing for apport

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from bzrlib import (
26
26
    config,
27
27
    crash,
 
28
    osutils,
 
29
    symbol_versioning,
28
30
    tests,
29
 
    osutils,
30
 
    )
31
 
 
32
 
from bzrlib.tests import (
33
 
    features,
34
 
    TestCaseInTempDir,
35
 
    )
36
 
from bzrlib.tests.features import ApportFeature
37
 
 
38
 
 
39
 
class TestApportReporting(TestCaseInTempDir):
 
31
    )
 
32
 
 
33
from bzrlib.tests import features
 
34
 
 
35
 
 
36
class TestApportReporting(tests.TestCaseInTempDir):
40
37
 
41
38
    _test_needs_features = [features.apport]
42
39
 
43
 
    def setUp(self):
44
 
        TestCaseInTempDir.setUp(self)
45
 
        self.requireFeature(ApportFeature)
46
 
 
47
40
    def test_apport_report(self):
48
41
        crash_dir = osutils.joinpath((self.test_base_dir, 'crash'))
49
42
        os.mkdir(crash_dir)
50
43
        os.environ['APPORT_CRASH_DIR'] = crash_dir
51
44
        self.assertEquals(crash_dir, config.crash_dir())
52
 
    
 
45
 
53
46
        stderr = StringIO()
54
47
 
55
48
        try: