/breezy-debian/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-debian/trunk

« back to all changes in this revision

Viewing changes to tests/blackbox/test_builddeb.py

  • Committer: Jelmer Vernooij
  • Date: 2018-10-10 21:43:37 UTC
  • Revision ID: jelmer@jelmer.uk-20181010214337-ffmg6a8np2ywc67h
Python3 compatibility fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from __future__ import absolute_import
22
22
 
 
23
from breezy.sixish import text_type
23
24
 
24
25
import os
25
26
 
57
58
 
58
59
  def assertNotInBuildDir(self, files):
59
60
    build_dir = self.build_dir()
60
 
    if isinstance(files, basestring):
 
61
    if isinstance(files, (bytes, text_type):
61
62
      files = [files]
62
63
    for filename in files:
63
64
      self.assertPathDoesNotExist(os.path.join(build_dir, filename))