jenkins-bot has submitted this change and it was merged.
Change subject: Fix doctest broken by deprecation warning ......................................................................
Fix doctest broken by deprecation warning
MW API has deprecated the old request query system, issuing a warning if neither 'continue' nor 'rawcontinue' are in the request params.
This breaks the doctest for the raw Request object, which prevents jenkins from approving code changes which dont resolve this issue.
Modified the expected outcome to allow for warnings in the response, so that the dev system isnt in stalemate while waiting for the right fix.
Change-Id: I07081de95437724233afe38df663256a3e495280 --- M pywikibot/data/api.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py index 4f46027..95b9770 100644 --- a/pywikibot/data/api.py +++ b/pywikibot/data/api.py @@ -196,8 +196,8 @@ >>> data = r.submit() # doctest: +IGNORE_UNICODE >>> isinstance(data, dict) True - >>> sorted(data.keys()) # doctest: +IGNORE_UNICODE - ['query'] + >>> 'query' in data + True >>> sorted(data[u'query'].keys()) # doctest: +IGNORE_UNICODE ['namespaces', 'userinfo']
pywikibot-commits@lists.wikimedia.org