~dandrader/unity8/multiInstanceApp

« back to all changes in this revision

Viewing changes to tests/autopilot/unity8/__init__.py

  • Committer: Dimitri John Ledkov
  • Date: 2014-02-22 00:12:49 UTC
  • mfrom: (519.2.7 py3_update)
  • mto: This revision was merged to the branch mainline in revision 736.
  • Revision ID: dimitri.ledkov@canonical.com-20140222001249-cysi0p4hjtz2sl6s
Ship python3 autopilot modules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
    )
83
83
    if not os.path.exists(binary_path):
84
84
        try:
85
 
            binary_path = subprocess.check_output(['which', binary]).strip()
 
85
            binary_path = subprocess.check_output(
 
86
                ['which', binary],
 
87
                universal_newlines=True,
 
88
            ).strip()
86
89
        except subprocess.CalledProcessError as e:
87
90
            raise RuntimeError("Unable to locate %s binary: %r" % (binary, e))
88
91
    return binary_path