/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 breezy/tests/test_https_ca_bundle.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-06 01:18:08 UTC
  • mfrom: (7143 work)
  • mto: This revision was merged to the branch mainline in revision 7151.
  • Revision ID: jelmer@jelmer.uk-20181106011808-y870f4vq0ork3ahu
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
    def _make_file(self, in_dir='.'):
37
37
        fname = os.path.join(in_dir, 'curl-ca-bundle.crt')
38
 
        f = file(fname, 'w')
39
 
        f.write('spam')
40
 
        f.close()
 
38
        with open(fname, 'w') as f:
 
39
            f.write('spam')
41
40
 
42
41
    def test_found_nothing(self):
43
42
        self.assertEqual('', ca_bundle.get_ca_path(use_cache=False))