jenkins-bot has submitted this change and it was merged.
Change subject: Disable weblib tests on travis-ci ......................................................................
Disable weblib tests on travis-ci
The weblib tests are now regularly failing on travis-ci, due to network issues.
Change-Id: I19ebe7d44c598c0cd81d3c1d84cfe63ead22f71a --- M tests/weblib_tests.py 1 file changed, 7 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/weblib_tests.py b/tests/weblib_tests.py index df43e8e..58a0392 100644 --- a/tests/weblib_tests.py +++ b/tests/weblib_tests.py @@ -6,6 +6,7 @@ # __version__ = '$Id$'
+import os import sys if sys.version_info[0] == 2: from urlparse import urlparse @@ -17,6 +18,12 @@
class TestArchiveSites(NoSiteTestCase): + + @classmethod + def setUpClass(cls): + if os.environ.get('TRAVIS', 'false') == 'true': + raise unittest.SkipTest('Weblib tests are disabled on Travis-CI') + def testInternetArchiveNewest(self): archivedversion = weblib.getInternetArchiveURL('https://google.com') parsed = urlparse(archivedversion)
pywikibot-commits@lists.wikimedia.org