jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Ori.livneh: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Ib931837a34d27fd19840997e91b980ec17ab3d36
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits