Created
January 9, 2013 13:32
-
-
Save Elizafox/4493128 to your computer and use it in GitHub Desktop.
Test case for problem in gevent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This works as expected (Python docs specify it should) | |
import socket, ssl | |
# This fails | |
#from gevent import socket, ssl | |
f = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s = ssl.wrap_socket(f) | |
s.connect(('irc.interlinked.me', 9999)) | |
while True: | |
print(s.recv(512).decode('UTF-8')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would you please tweak it a little bit and add this into the greentests?