Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Quick hack to make this test pass on cygwin

  • Loading branch information...
commit a358a73547f58b1bee214c889b539969a53202f7 1 parent 67d6934
@bdarnell bdarnell authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 tornado/test/iostream_test.py
View
5 tornado/test/iostream_test.py
@@ -7,6 +7,7 @@
from tornado.web import RequestHandler, Application
import errno
import socket
+import sys
import time
@@ -93,7 +94,9 @@ def connect_callback():
self.wait()
self.assertFalse(self.connect_called)
self.assertTrue(isinstance(stream.error, socket.error), stream.error)
- self.assertEqual(stream.error.args[0], errno.ECONNREFUSED)
+ 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):
# Test that IOStream sets its exc_info on getaddrinfo error
Please sign in to comment.
Something went wrong with that request. Please try again.