/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-06-17 11:15:04 UTC
  • mto: (6973.12.2 python3-k)
  • mto: This revision was merged to the branch mainline in revision 7003.
  • Revision ID: jelmer@jelmer.uk-20180617111504-i2eqvqbtfj5bp0t3
s/file/open.

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