Quick hack to make this test pass on cygwin
This commit is contained in:
parent
67d69340a2
commit
a358a73547
|
@ -7,6 +7,7 @@ from tornado.util import b
|
|||
from tornado.web import RequestHandler, Application
|
||||
import errno
|
||||
import socket
|
||||
import sys
|
||||
import time
|
||||
|
||||
|
||||
|
@ -93,6 +94,8 @@ class TestIOStream(AsyncHTTPTestCase, LogTrapTestCase):
|
|||
self.wait()
|
||||
self.assertFalse(self.connect_called)
|
||||
self.assertTrue(isinstance(stream.error, socket.error), stream.error)
|
||||
if sys.platform != 'cygwin':
|
||||
# cygwin's errnos don't match those used on native windows python
|
||||
self.assertEqual(stream.error.args[0], errno.ECONNREFUSED)
|
||||
|
||||
def test_gaierror(self):
|
||||
|
|
Loading…
Reference in New Issue