~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: 2011-01-21 17:22:25 UTC
  • mfrom: (5626.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20110121172225-7mybq84k4ikcails
(vila) Merge 2.3 into trunk including bugfix for #701940 (Vincent
        Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2009, 2010, 2011 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
    config,
27
27
    crash,
28
28
    osutils,
29
 
    symbol_versioning,
30
29
    tests,
31
30
    )
32
31
 
40
39
    def test_apport_report(self):
41
40
        crash_dir = osutils.joinpath((self.test_base_dir, 'crash'))
42
41
        os.mkdir(crash_dir)
43
 
        os.environ['APPORT_CRASH_DIR'] = crash_dir
 
42
        self.overrideEnv('APPORT_CRASH_DIR', crash_dir)
44
43
        self.assertEquals(crash_dir, config.crash_dir())
45
44
 
46
45
        stderr = StringIO()