Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/75278


Change subject: Skip test that requires socket usage on Travis.CI
......................................................................

Skip test that requires socket usage on Travis.CI

Change-Id: Ib931837a34d27fd19840997e91b980ec17ab3d36
---
M server/tests/test_compat.py
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EventLogging 
refs/changes/78/75278/1

diff --git a/server/tests/test_compat.py b/server/tests/test_compat.py
index 403ca0d..df8ab07 100644
--- a/server/tests/test_compat.py
+++ b/server/tests/test_compat.py
@@ -9,10 +9,14 @@
 from __future__ import unicode_literals
 
 import multiprocessing
+import os
 import unittest
 import wsgiref.simple_server
 
 from eventlogging.compat import http_get
+
+
+TRAVIS = os.getenv('TRAVIS', False)
 
 
 class SingleServingHttpd(multiprocessing.Process):
@@ -30,6 +34,8 @@
 
 class HttpGetTestCase(unittest.TestCase):
     """Test cases for ``http_get``."""
+
+    @unittest.skipIf(TRAVIS, 'Running in Travis')
     def test_http_get(self):
         """``http_get`` can pull content via HTTP."""
         server = SingleServingHttpd('secret')

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib931837a34d27fd19840997e91b980ec17ab3d36
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

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

Reply via email to