This is my current patch which attemps to do that. However, it fails
with

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/autopilot/utilities.py", line 351, in 
action_on_test_end
    obj.on_test_end(test_instance)
  File "/usr/lib/python3/dist-packages/autopilot/input/_X11.py", line 493, in 
on_test_end
    move_mouse_to_screen(0)
  File "/usr/lib/python3/dist-packages/autopilot/display/__init__.py", line 59, 
in move_mouse_to_screen
    Mouse.create().move(x, y, False)
  File "/usr/lib/python3/dist-packages/autopilot/input/__init__.py", line 298, 
in create
    return _pick_backend(backends, preferred_backend)
  File "/usr/lib/python3/dist-packages/autopilot/utilities.py", line 65, in 
_pick_backend
    "Unable to instantiate any backends\n%s" % '\n'.join(failure_reasons))
RuntimeError: Unable to instantiate any backends
X11: DisplayConnectionError(':99', b'No protocol specified\n')
}}}

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.

** Patch added: "incomplete patch"
   
https://bugs.launchpad.net/ubuntu/+source/ubuntu-system-settings-online-accounts/+bug/1320211/+attachment/4113862/+files/ubuntu-system-settings-online-accounts.py3.patch

** Changed in: ubuntu-system-settings-online-accounts (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320211

Title:
  port tests to python3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-system-settings-online-accounts/+bug/1320211/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to