/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: Vincent Ladeuil
  • Date: 2010-11-11 13:45:02 UTC
  • mto: This revision was merged to the branch mainline in revision 5541.
  • Revision ID: v.ladeuil+lp@free.fr-20101111134502-1va4yqkxptwnfhut
Create commit message files in TMPDIR instead of the current dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
301
301
    def test__create_temp_file_with_commit_template_in_unicode_dir(self):
302
302
        self.requireFeature(tests.UnicodeFilenameFeature)
303
303
        if hasattr(self, 'info'):
304
 
            os.mkdir(self.info['directory'])
305
 
            os.chdir(self.info['directory'])
306
 
            msgeditor._create_temp_file_with_commit_template('infotext')
 
304
            tmpdir = self.info['directory']
 
305
            os.mkdir(tmpdir)
 
306
            # Force the creation of temp file in a directory whose name
 
307
            # requires some encoding support
 
308
            msgeditor._create_temp_file_with_commit_template('infotext',
 
309
                                                             tmpdir=tmpdir)
307
310
        else:
308
311
            raise TestNotApplicable('Test run elsewhere with non-ascii data.')
309
312