~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-05 13:41:59 UTC
  • mfrom: (1963.1.4 run-subprocess)
  • Revision ID: pqm@pqm.ubuntu.com-20060905134159-ac8e1b01ac29c518
(jam) run_bzr_subprocess can remove env vars

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
            del os.environ['BZR_EMAIL']
233
233
            del os.environ['EMAIL']
234
234
 
 
235
    def test_run_bzr_subprocess_env_del_missing(self):
 
236
        """run_bzr_subprocess won't fail if deleting a nonexistant env var"""
 
237
        self.failIf('NON_EXISTANT_ENV_VAR' in os.environ)
 
238
        out, err = self.run_bzr_subprocess('rocks',
 
239
                        env_changes={'NON_EXISTANT_ENV_VAR':None})
 
240
        self.assertEquals('it sure does!\n', out)
 
241
 
 
242
 
235
243
class TestRunBzrError(ExternalBase):
236
244
 
237
245
    def test_run_bzr_error(self):