~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_nonascii.py

  • Committer: Marius Kruger
  • Date: 2012-06-10 22:48:08 UTC
  • mto: This revision was merged to the branch mainline in revision 6544.
  • Revision ID: amanic@gmail.com-20120610224808-s7qj3ep4zd21s0u7
use ui.ui_factory.show_user_warning to warn about not checking ssl certs, so that we only do it once

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        except UnicodeEncodeError:
36
36
            raise TestSkipped("filesystem can't accomodate nonascii names")
37
37
            return
38
 
        file(pathjoin(br_dir, "a"), "w").write("hello")
 
38
        with file(pathjoin(br_dir, "a"), "w") as f: f.write("hello")
39
39
        wt.add(["a"], ["a-id"])
40
40
 
41
41