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

  • Committer: Martin Pool
  • Date: 2006-10-19 02:59:24 UTC
  • mfrom: (2089 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2090.
  • Revision ID: mbp@sourcefrog.net-20061019025924-1af1ed4510b4e71f
merge up bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 by Canonical Ltd
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
 
# it under the terms of the GNU General Public License version 2 as published by
5
 
# the Free Software Foundation.
 
4
# it under the terms of the GNU General Public License as published by
 
5
# the Free Software Foundation; either version 2 of the License, or
 
6
# (at your option) any later version.
6
7
#
7
8
# This program is distributed in the hope that it will be useful,
8
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
56
57
        self._bzr_editor = os.environ.get('BZR_EDITOR', None)
57
58
 
58
59
    def tearDown(self):
59
 
        if self._bzr_editor != None:
 
60
        if self._bzr_editor is not None:
60
61
            os.environ['BZR_EDITOR'] = self._bzr_editor
61
62
        else:
62
 
            if os.environ.get('BZR_EDITOR', None) != None:
 
63
            if os.environ.get('BZR_EDITOR', None) is not None:
63
64
                del os.environ['BZR_EDITOR']
64
65
        super(MsgEditorTest, self).tearDown()
65
66