jenkins-bot has submitted this change and it was merged.
Change subject: [FEAT] Test Python 3.5 on Travis ......................................................................
[FEAT] Test Python 3.5 on Travis
As Python 3.5 has been officially released we should test on this. There are minor issues with deprecations as `inspect.getargspec` has been deprecated. But apart from a deprecation message it still works and will only be broken with Python 3.6.
Bug: T106209 Change-Id: Ic8256184d1c1dbf841def5ad3846155564e05b75 --- M .travis.yml M tests/utils.py 2 files changed, 7 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml index 01b04ad..eaca16b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ - '2.7' - '3.3' - '3.4' + - '3.5' - '2.6'
# OSX builds do not yet support Python diff --git a/tests/utils.py b/tests/utils.py index fb2fafb..654b91b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -227,6 +227,12 @@ else: skip_lines -= 1
+ # Avoid failures because getargspec hasn't been removed yet: T106209 + if PYTHON_VERSION >= (3, 5, 0): + if str(entry.message) == ('inspect.getargspec() is deprecated, ' + 'use inspect.signature() instead'): + return + log.append(entry)
log = super(WarningSourceSkipContextManager, self).__enter__()
pywikibot-commits@lists.wikimedia.org