[devtools] skip CubicWebServerTC on python3
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 24 Feb 2016 17:34:56 +0100
changeset 11160 ed048bfd1b88
parent 11159 b07406dae25e
child 11161 dd1933f56f4e
[devtools] skip CubicWebServerTC on python3 People should migrate to wsgi if they're going to use CubicWeb on python3.
cubicweb/devtools/httptest.py
--- a/cubicweb/devtools/httptest.py	Mon Feb 08 16:10:51 2016 +0100
+++ b/cubicweb/devtools/httptest.py	Wed Feb 24 17:34:56 2016 +0100
@@ -26,6 +26,7 @@
 import threading
 import socket
 
+from six import PY3
 from six.moves import range, http_client
 from six.moves.urllib.parse import urlparse
 
@@ -132,6 +133,8 @@
 
 class CubicWebServerTC(_CubicWebServerTC):
     def start_server(self):
+        if PY3:
+            self.skipTest('not using twisted on python3')
         from twisted.internet import reactor
         from cubicweb.etwist.server import run
         # use a semaphore to avoid starting test while the http server isn't