~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_commit_builder.py

(vila) Provides a better isolation from os.environ for tests. (Vincent
 Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1317
1317
    def test_committer_no_username(self):
1318
1318
        # Ensure that when no username is available but a committer is
1319
1319
        # supplied, commit works.
1320
 
        del os.environ['EMAIL']
 
1320
        self.overrideEnv('EMAIL', None)
1321
1321
        tree = self.make_branch_and_tree(".")
1322
1322
        tree.lock_write()
1323
1323
        try: