diff options
| author | Ryan Williams <breath@alum.mit.edu> | 2010-07-23 16:01:26 -0700 |
|---|---|---|
| committer | Ryan Williams <breath@alum.mit.edu> | 2010-07-23 16:01:26 -0700 |
| commit | 7ad062b25868f2e01cbab7732ff00b4a9f38c4ca (patch) | |
| tree | 1c0cb4f48d16abecba54ca73e252eed83dffbfb9 /tests/stdlib | |
| parent | c6d04b3214e768031c1b58135a3414d65b0652c6 (diff) | |
| download | eventlet-7ad062b25868f2e01cbab7732ff00b4a9f38c4ca.tar.gz | |
Fixed test_asyncore for 2.7
Diffstat (limited to 'tests/stdlib')
| -rw-r--r-- | tests/stdlib/test_asyncore.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/stdlib/test_asyncore.py b/tests/stdlib/test_asyncore.py index 0617c87..8ea2403 100644 --- a/tests/stdlib/test_asyncore.py +++ b/tests/stdlib/test_asyncore.py @@ -5,13 +5,7 @@ from eventlet.green import socket from eventlet.green import threading from eventlet.green import time -patcher.inject("test.test_asyncore", - globals(), - ('asyncore', asyncore), - ('select', select), - ('socket', socket), - ('threading', threading), - ('time', time)) +patcher.inject("test.test_asyncore", globals()) def new_closeall_check(self, usedefault): # Check that close_all() closes everything in a given map @@ -47,5 +41,9 @@ def new_closeall_check(self, usedefault): HelperFunctionTests.closeall_check = new_closeall_check +# Eventlet's select() emulation doesn't support the POLLPRI flag, +# which this test relies on. Therefore, nuke it! +BaseTestAPI.test_handle_expt = lambda *a, **kw: None + if __name__ == "__main__": - test_main()
\ No newline at end of file + test_main() |
