From: Mircea Ulinic Date: Tue, 7 Feb 2017 15:44:32 +0000 (+0000) Subject: Skip port test if not unix X-Git-Tag: v4.5.0~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1935%2Fhead;p=thirdparty%2Ftornado.git Skip port test if not unix --- diff --git a/tornado/test/tcpclient_test.py b/tornado/test/tcpclient_test.py index 2deca8abb..702e0308b 100644 --- a/tornado/test/tcpclient_test.py +++ b/tornado/test/tcpclient_test.py @@ -25,7 +25,7 @@ from tornado.netutil import bind_sockets, Resolver from tornado.tcpclient import TCPClient, _Connector from tornado.tcpserver import TCPServer from tornado.testing import AsyncTestCase, gen_test -from tornado.test.util import skipIfNoIPv6, unittest, refusing_port +from tornado.test.util import skipIfNoIPv6, unittest, refusing_port, skipIfNonUnix # Fake address families for testing. Used in place of AF_INET # and AF_INET6 because some installations do not have AF_INET6. @@ -143,6 +143,7 @@ class TCPClientTest(AsyncTestCase): ''' self.do_test_connect(socket.AF_INET, '127.0.0.1', source_ip='127.0.0.1') + @skipIfNonUnix def test_source_port_fail(self): ''' Fail when trying to use source port 1.