port tests to python3
Bug #1320211 reported by
Martin Pitt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-system-settings-online-accounts (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
We should move the autopilot tests to python 3.
Related branches
lp:~pitti/ubuntu-system-settings-online-accounts/py3tests
- PS Jenkins bot (community): Approve (continuous-integration)
- Alberto Mardegan (community): Approve
-
Diff: 89 lines (+9/-9)7 files modifieddebian/control (+3/-3)
debian/rules (+1/-1)
debian/tests/autopilot (+1/-1)
debian/tests/control (+1/-1)
tests/autopilot/autopilot.pro (+1/-1)
tests/autopilot/online_accounts_ui/emulators/items.py (+1/-1)
tests/autopilot/online_accounts_ui/tests/test_online_accounts_ui.py (+1/-1)
tags: | added: patch |
Changed in ubuntu-system-settings-online-accounts (Ubuntu): | |
status: | In Progress → Fix Released |
To post a comment you must log in.
This is my current patch which attemps to do that. However, it fails with
Traceback (most recent call last): python3/ dist-packages/ autopilot/ utilities. py", line 351, in action_on_test_end on_test_ end(test_ instance) python3/ dist-packages/ autopilot/ input/_ X11.py" , line 493, in on_test_end mouse_to_ screen( 0) python3/ dist-packages/ autopilot/ display/ __init_ _.py", line 59, in move_mouse_ to_screen create( ).move( x, y, False) python3/ dist-packages/ autopilot/ input/_ _init__ .py", line 298, in create backends, preferred_backend) python3/ dist-packages/ autopilot/ utilities. py", line 65, in _pick_backend failure_ reasons) ) onError( ':99', b'No protocol specified\n')
File "/usr/lib/
obj.
File "/usr/lib/
move_
File "/usr/lib/
Mouse.
File "/usr/lib/
return _pick_backend(
File "/usr/lib/
"Unable to instantiate any backends\n%s" % '\n'.join(
RuntimeError: Unable to instantiate any backends
X11: DisplayConnecti
}}}
python3-evdev and python3-xlib are installed, so I don't have a good idea what's wrong here. Attaching the patch here to avoid losing it, as I need to stop working on this now.