~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_registry.py

  • Committer: Vincent Ladeuil
  • Date: 2012-02-14 17:22:37 UTC
  • mfrom: (6466 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120214172237-7dv7er3n4uy8d5m4
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
        """
273
273
        os.mkdir('tmp')
274
274
        plugin_name = 'bzr_plugin_a_%s' % (osutils.rand_chars(4),)
275
 
        open('tmp/'+plugin_name+'.py', 'wb').write(contents)
 
275
        with open('tmp/'+plugin_name+'.py', 'wb') as f: f.write(contents)
276
276
        return plugin_name
277
277
 
278
278
    def create_simple_plugin(self):