~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006-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
155
155
        # and uses whoami only in a lock file. Without whoami the login name
156
156
        # is used. This test is to ensure that init-repo passes even when whoami
157
157
        # is not available.
158
 
        osutils.set_or_unset_env('EMAIL', None)
159
 
        osutils.set_or_unset_env('BZR_EMAIL', None)
 
158
        self.overrideEnv('EMAIL', None)
 
159
        self.overrideEnv('BZR_EMAIL', None)
160
160
        out, err = self.run_bzr(['init-repo', 'foo'])
161
161
        self.assertEqual(err, '')
162
162
        self.assertTrue(os.path.exists('foo'))