[telepathy-mission-control-5.16] telepathy-mission-control: Update tests to Python 3

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 25 19:51:16 UTC 2020


Module: telepathy-mission-control
Branch: telepathy-mission-control-5.16
Commit: 3f0ce4db48ac6389ffacd4ac1a9b24bae989d97c
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=3f0ce4db48ac6389ffacd4ac1a9b24bae989d97c

Author: Tomi Leppänen <tomi.leppanen at jolla.com>
Date:   Mon Aug 24 14:47:45 2020 +0300

Update tests to Python 3

Run the code through 2to3 tool and fixed parts that need manual fixing.
Also ported dbus-python use to be Python 3 compatible.

Signed-off-by: Tomi Leppänen <tomi.leppanen at jolla.com>

---

 tests/twisted/account-manager/account-basics.py    |  6 ++---
 tests/twisted/account-manager/auto-connect.py      |  4 +--
 tests/twisted/account-manager/avatar-refresh.py    |  6 ++---
 tests/twisted/account-manager/avatar.py            | 22 ++++++++--------
 .../account-manager/create-with-properties.py      |  2 +-
 tests/twisted/account-manager/make-valid.py        |  2 +-
 tests/twisted/account-manager/param-types.py       |  6 ++---
 tests/twisted/account-manager/reconnect.py         |  6 ++---
 tests/twisted/account-manager/request-online.py    |  6 ++---
 tests/twisted/account-manager/update-parameters.py |  4 +--
 .../account-storage/default-keyring-storage.py     |  4 +--
 tests/twisted/account-storage/diverted-storage.py  |  2 +-
 .../account-storage/libaccounts-sso-storage.py     |  4 +--
 tests/twisted/capabilities/contact-caps.py         |  4 +--
 tests/twisted/crash-recovery/crash-recovery.py     |  2 +-
 tests/twisted/dispatcher/already-has-channel.py    |  4 +--
 tests/twisted/dispatcher/already-has-obsolete.py   |  4 +--
 tests/twisted/dispatcher/cancel.py                 |  2 +-
 tests/twisted/dispatcher/create-at-startup.py      |  2 +-
 tests/twisted/fakeaccountsservice.py               |  6 ++---
 tests/twisted/fakeclient.py                        |  4 +--
 tests/twisted/fakecm.py                            | 14 +++++-----
 tests/twisted/mctest.py                            | 30 +++++++++++-----------
 tests/twisted/servicetest.py                       | 26 +++++++++----------
 24 files changed, 86 insertions(+), 86 deletions(-)

Diff:   http://cgit.freedesktop.org/telepathy/telepathy-mission-control/diff/?id=3f0ce4db48ac6389ffacd4ac1a9b24bae989d97c


More information about the telepathy-commits mailing list