jenkins-bot has submitted this change and it was merged.
Change subject: Revert "[bugfix] fix tests for wikidata"
......................................................................
Revert "[bugfix] fix tests for wikidata"
This reverts commit 8816913e4320dbac94c0d18926803ee8f5e8d44b.
Bug: T134655
Change-Id: Ib435c5c64a3744f43aef639364dfbbd3b6712b08
---
M tests/wikibase_tests.py
1 file changed, 0 insertions(+), 17 deletions(-)
Approvals:
John Vandenberg: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py
index 6cfceaf..7b747e3 100644
--- a/tests/wikibase_tests.py
+++ b/tests/wikibase_tests.py
@@ -1131,30 +1131,13 @@
},
}
- def test_own_repository(self, key):
- """Test that a data repository family is its own repository."""
- site = self.get_site(key)
- self.assertEqual(site, site.data_repository())
- self.assertTrue(site.is_data_repository)
-
def test_own_client(self, key):
"""Test that a data repository family can be its own client."""
site = self.get_site(key)
- self.assertTrue(site.has_data_repository)
- def test_item_exists(self):
- """Test that a ItemPage exists for wikidata:wikidata."""
- site = self.get_site('wikidata')
page = pywikibot.Page(site, 'Wikidata:Main Page')
item = pywikibot.ItemPage.fromPage(page)
self.assertEqual(item.site, site)
-
- def test_item_not_exists(self):
- """Test that a ItemPage does not exists for test:wikidata."""
- site = self.get_site('wikidatatest')
- page = pywikibot.Page(site, 'Wikidata:Main Page')
- with self.assertRaises(pywikibot.NoPage):
- pywikibot.ItemPage.fromPage(page)
class TestUnconnectedClient(TestCase):
--
To view, visit https://gerrit.wikimedia.org/r/298452
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib435c5c64a3744f43aef639364dfbbd3b6712b08
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Print additional warning when starting a thread fails
......................................................................
Print additional warning when starting a thread fails
- print a warning to decrease max_external_links
- increase sleeping time before starting a new thread to config.retry_wait value
to wait a longer time until a previous thread was finished.
Bug: T145273
Change-Id: I1cebcfa6e49f0e68975d7e9062e1dd3825b9a7ac
---
M scripts/weblinkchecker.py
1 file changed, 10 insertions(+), 3 deletions(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py
index 9f5abb5..44e3296 100755
--- a/scripts/weblinkchecker.py
+++ b/scripts/weblinkchecker.py
@@ -862,13 +862,20 @@
# Limit the number of threads started at the same time. Each
# thread will check one page, then die.
while threading.activeCount() >= config.max_external_links:
- # wait 100 ms
- time.sleep(0.1)
+ time.sleep(config.retry_wait)
thread = LinkCheckThread(page, url, self.history,
self.HTTPignore, self.day)
# thread dies when program terminates
thread.setDaemon(True)
- thread.start()
+ try:
+ thread.start()
+ except threading.ThreadError:
+ pywikibot.warning(
+ "Can't start a new thread.\nPlease decrease "
+ "max_external_links in your user-config.py or use\n"
+ "'-max_external_links:' option with a smaller value. "
+ "Default is 50.")
+ raise
def RepeatPageGenerator():
--
To view, visit https://gerrit.wikimedia.org/r/309730
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1cebcfa6e49f0e68975d7e9062e1dd3825b9a7ac
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
Build Update for wikimedia/pywikibot-core
-------------------------------------
Build: #3618
Status: Errored
Duration: 39 minutes and 1 second
Commit: 5ad5181 (master)
Author: Alex Monk
Message: Default wikimedia rcstream to https on port 443
Instead of http on port 80
This commit itself is not tested (I'm not a pywikibot user), though I have
checked my own little socketIO_client script and it should be okay.
Bug: T145244
Change-Id: I4a01817ba7e525f3ebdf82cab939ac8bbcdf1835
View the changeset: https://github.com/wikimedia/pywikibot-core/compare/6453e15141d4...5ad51816…
View the full build log and details: https://travis-ci.org/wikimedia/pywikibot-core/builds/158849183
--
You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications