diff options
| author | Ryan Williams <rdw@lindenlab.com> | 2009-11-26 22:08:44 -0500 |
|---|---|---|
| committer | Ryan Williams <rdw@lindenlab.com> | 2009-11-26 22:08:44 -0500 |
| commit | c19b8ec24b43a0a6436f60757425d4113337b346 (patch) | |
| tree | 039bc2e35604edc1724bc928e6d1fef2d2ec3115 /tests/stdlib | |
| parent | 118490147a27b512fdf0fd837b418163ea9bf848 (diff) | |
| download | eventlet-c19b8ec24b43a0a6436f60757425d4113337b346.tar.gz | |
Converted test_socket to use the patcher, fixed minor divergence from standard library's behavior (which honestly looks to me like a stdlib unit test that isn't testing what it's supposed to, but what can ya do).
Diffstat (limited to 'tests/stdlib')
| -rw-r--r-- | tests/stdlib/test_socket.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/stdlib/test_socket.py b/tests/stdlib/test_socket.py index 9532222..8bf7ed4 100644 --- a/tests/stdlib/test_socket.py +++ b/tests/stdlib/test_socket.py @@ -1,20 +1,19 @@ #!/usr/bin/env python -from test import test_socket - +from eventlet import patcher from eventlet.green import socket from eventlet.green import select from eventlet.green import time from eventlet.green import thread from eventlet.green import threading -test_socket.socket = socket -test_socket.select = select -test_socket.time = time -test_socket.thread = thread -test_socket.threading = threading - -from test.test_socket import * +patcher.inject('test.test_socket', + globals(), + ('socket', socket), + ('select', select), + ('time', time), + ('thread', thread), + ('threading', threading)) if __name__ == "__main__": test_main()
\ No newline at end of file |
