diff options
| author | Ryan Williams <rdw@lindenlab.com> | 2009-11-29 01:44:36 -0500 |
|---|---|---|
| committer | Ryan Williams <rdw@lindenlab.com> | 2009-11-29 01:44:36 -0500 |
| commit | 1b6fe06cb95b2f6f7d97f317769d8a0c171478f8 (patch) | |
| tree | e0c3006c1d8d3a2bbf5048b4c54372efb7716931 /tests/stdlib | |
| parent | cdfc4e171d228a2d832397cc879fd1ab44fc1122 (diff) | |
| download | eventlet-1b6fe06cb95b2f6f7d97f317769d8a0c171478f8.tar.gz | |
Replaced copy-and-paste code of urllib with short patcher snippet, adding a hacky hack in the process, but one I don't feel too bad about because it's freakin urllib which no one actually uses (or admits to using).
Diffstat (limited to 'tests/stdlib')
| -rw-r--r-- | tests/stdlib/test_ftplib.py | 13 | ||||
| -rw-r--r-- | tests/stdlib/test_urllib.py | 11 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/stdlib/test_ftplib.py b/tests/stdlib/test_ftplib.py new file mode 100644 index 0000000..7317af4 --- /dev/null +++ b/tests/stdlib/test_ftplib.py @@ -0,0 +1,13 @@ +from eventlet import patcher +from eventlet.green import ftplib +from eventlet.green import threading +from eventlet.green import socket + +patcher.inject('test.test_ftplib', + globals(), + ('ftplib', ftplib), + ('socket', socket), + ('threading', threading)) + +if __name__ == "__main__": + test_main()
\ No newline at end of file diff --git a/tests/stdlib/test_urllib.py b/tests/stdlib/test_urllib.py new file mode 100644 index 0000000..41f9e6a --- /dev/null +++ b/tests/stdlib/test_urllib.py @@ -0,0 +1,11 @@ +from eventlet import patcher +from eventlet.green import httplib +from eventlet.green import urllib + +patcher.inject('test.test_urllib', + globals(), + ('httplib', httplib), + ('urllib', urllib)) + +if __name__ == "__main__": + test_main()
\ No newline at end of file |
