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)

-- 
To view, visit https://gerrit.wikimedia.org/r/152207
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I19ebe7d44c598c0cd81d3c1d84cfe63ead22f71a
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Bennylin <[email protected]>
Gerrit-Reviewer: Brent Garber <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Hazard-SJ <[email protected]>
Gerrit-Reviewer: JAn Dudík <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: Multichill <[email protected]>
Gerrit-Reviewer: Nemo bis <[email protected]>
Gerrit-Reviewer: Nullzero <[email protected]>
Gerrit-Reviewer: Ricordisamoa <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: Yurik <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to