diff options
| author | Ryan Williams <rdw@lindenlab.com> | 2009-11-26 23:32:43 -0500 |
|---|---|---|
| committer | Ryan Williams <rdw@lindenlab.com> | 2009-11-26 23:32:43 -0500 |
| commit | e36cdaaa7fcd277cec97273533a2b42835e243e4 (patch) | |
| tree | 20b008edd0d292d6f92072b19ecb98c51d65d01f /tests/stdlib | |
| parent | c19b8ec24b43a0a6436f60757425d4113337b346 (diff) | |
| download | eventlet-e36cdaaa7fcd277cec97273533a2b42835e243e4.tar.gz | |
Convert test_select to patcher
Diffstat (limited to 'tests/stdlib')
| -rw-r--r-- | tests/stdlib/test_select.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/stdlib/test_select.py b/tests/stdlib/test_select.py index 6d8ca56..54e08fa 100644 --- a/tests/stdlib/test_select.py +++ b/tests/stdlib/test_select.py @@ -1,11 +1,12 @@ from eventlet import api api.sleep(0) # initialize the hub +from eventlet import patcher from eventlet.green import select -import sys -sys.modules['select'] = select - -from test.test_select import * +patcher.inject('test.test_select', + globals(), + ('select', select)) + if __name__ == "__main__": try: test_main() |
