~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_registry.py

  • Committer: Patch Queue Manager
  • Date: 2015-12-17 18:39:00 UTC
  • mfrom: (6606.1.2 fix-float)
  • Revision ID: pqm@pqm.ubuntu.com-20151217183900-0719du2uv1kwu3lc
(vila) Inline testtools private method to fix an issue in xenial (the
 private implementation has changed in an backward incompatible way).
 (Jelmer Vernooij)

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):