jenkins-bot has submitted this change and it was merged.
Change subject: Bug 63671 - Wikidataquery ip or url (wikidataquery.eu) seems broken ......................................................................
Bug 63671 - Wikidataquery ip or url (wikidataquery.eu) seems broken
Change-Id: I5d03bd7725fd03ed6dc3b7d5b0d94f59ac17268d --- M pywikibot/data/wikidataquery.py M tests/wikidataquery_tests.py 2 files changed, 2 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/wikidataquery.py b/pywikibot/data/wikidataquery.py index f7ea1a6..fdd66c7 100644 --- a/pywikibot/data/wikidataquery.py +++ b/pywikibot/data/wikidataquery.py @@ -393,7 +393,7 @@ class WikidataQuery(): """ An interface to the WikidatQuery API. Default host is - wikidataquery.eu (http://208.80.153.172), but you can substitute + http://wdq.wmflabs.org, but you can substitute a different one.
Caching defaults to a subdir of the system temp directory with a @@ -402,7 +402,7 @@ Set a zero or negative maxCacheAge to disable caching """
- def __init__(self, host="http://208.80.153.172", cacheDir=None, + def __init__(self, host="http://wdq.wmflabs.org", cacheDir=None, cacheMaxAge=60): self.host = host self.cacheMaxAge = cacheMaxAge diff --git a/tests/wikidataquery_tests.py b/tests/wikidataquery_tests.py index 1e08420..cb8373e 100644 --- a/tests/wikidataquery_tests.py +++ b/tests/wikidataquery_tests.py @@ -228,7 +228,6 @@
class TestApiSlowFunctions(unittest.TestCase):
- @unittest.expectedFailure def testQueryApiGetter(self): """ Test that we can actually retreive data and that caching works
pywikibot-commits@lists.wikimedia.org