Needs to provide emulators for Python3

Bug #1253627 reported by Martin Pitt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Chris Gagnon

Bug Description

A lot of other tests (dialer, messaging, gallery, webbrowser, notes, keyboard) depend on ubuntu-ui-toolkit-autopilot for the emulators. To unblock these from being ported to Python 3, the package should ship a Python 3 module of ubuntuuitoolkit.emulators.

The module itself should already work fine for Python 3, 2to3 has no output at all, and a quick visual inspection also shows no oddities (string vs. bytes and the usual traps).

The package already violates the python policy anyway, so I guess as a first step it could just ship the python3 module in the same package. A cleaner approach would be to split out python3-ubuntuuitoolkit-emulators, but that might be a bit much for this one file which is relevant for testing only.

Revision history for this message
Martin Pitt (pitti) wrote :

Quick hack for running tests with Python 3 for the time being:

$ cp -r /usr/lib/python2.7/dist-packages/ubuntuuitoolkit .

and run tests from that directory. Or, for running installed tests,

$ sudo mkdir /usr/lib//python3/dist-packages/ubuntuuitoolkit
$ sudo ln -s /usr/lib/python2.7/dist-packages/ubuntuuitoolkit/emulators.py /usr/lib//python3/dist-packages/ubuntuuitoolkit/

Revision history for this message
Martin Pitt (pitti) wrote :

Note that this bug and https://code.launchpad.net/~robru/autopilot/drop-upa/+merge/196034 seem to be the only two major blockers for transitioning tests to python3.

Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Chris Gagnon (chris.gagnon)
Revision history for this message
Barry Warsaw (barry) wrote :

I have a branch that I'm working on in conjunction with porting autopilot to Python 3. Local testing/building problems prevent merge proposals at this time. I'll take a look at the mp attached to this bug.

Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.