/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-06-30 10:19:02 UTC
  • mfrom: (6973.7.13 python3-g-real)
  • Revision ID: breezy.the.bot@gmail.com-20180630101902-thpqkbi44kqom06g
Fix more tests.

Merged from https://code.launchpad.net/~jelmer/brz/python3-g/+merge/348134

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