diff options
| author | Sergey Shepelev <temotor@gmail.com> | 2014-09-05 02:49:43 +0400 |
|---|---|---|
| committer | Sergey Shepelev <temotor@gmail.com> | 2014-09-05 02:50:00 +0400 |
| commit | 9d05c68fa209d73ef164909f8c8173d3e67deafb (patch) | |
| tree | 1742fc152d95dee2919889febcaaa8fb4042787e /tests | |
| parent | 24f3b792dba5b8090dc7e59954f8550be36ce8fe (diff) | |
| download | eventlet-9d05c68fa209d73ef164909f8c8173d3e67deafb.tar.gz | |
green.socket: create_connection: UnboundLocalError on Python3gh-123-local-msg
Fixes https://github.com/eventlet/eventlet/issues/123
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/socket_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/socket_test.py b/tests/socket_test.py new file mode 100644 index 0000000..60881f7 --- /dev/null +++ b/tests/socket_test.py @@ -0,0 +1,8 @@ +from eventlet.green import socket + + +def test_create_connection_error(): + try: + socket.create_connection(('192.0.2.1', 80), timeout=0.1) + except (IOError, OSError): + pass |
