/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_strace.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        """Run strace, but cope if it's not allowed"""
58
58
        try:
59
59
            return strace_detailed(*args, **kwargs)
60
 
        except strace.StraceError, e:
 
60
        except strace.StraceError as e:
61
61
            if e.err_messages.startswith(
62
62
                    "attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted"):
63
63
                raise tests.TestSkipped("ptrace not permitted")