Created
August 13, 2011 21:54
-
-
Save rconradharris/1144287 to your computer and use it in GitHub Desktop.
Nose w/ Multiprocessing Bombing when Eventlet Patches Socket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(mptest)rconradharris@Richards-MacBook-Air:~/Documents/code/sandbox/multiprocessingtest$ uname -a | |
Darwin Richards-MacBook-Air.local 11.0.1 Darwin Kernel Version 11.0.1: Wed Jun 29 19:53:22 PDT 2011; root:xnu-1699.23.2~1/RELEASE_X86_64 x86_64 | |
(mptest)rconradharris@Richards-MacBook-Air:~/Documents/code/sandbox/multiprocessingtest$ cat test_nose_multiprocessing_with_eventlet.py | |
import eventlet | |
eventlet.patcher.monkey_patch(socket=True) | |
(mptest)rconradharris@Richards-MacBook-Air:~/Documents/code/sandbox/multiprocessingtest$ nosetests --processes=1 | |
Traceback (most recent call last): | |
File "/usr/local/bin/nosetests", line 8, in <module> | |
load_entry_point('nose==1.1.2', 'console_scripts', 'nosetests')() | |
File "/Library/Python/2.7/site-packages/nose/core.py", line 118, in __init__ | |
**extra_args) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/main.py", line 95, in __init__ | |
self.runTests() | |
File "/Library/Python/2.7/site-packages/nose/core.py", line 197, in runTests | |
result = self.testRunner.run(self.test) | |
File "/Library/Python/2.7/site-packages/nose/plugins/multiprocess.py", line 323, in run | |
currentaddr = Value('c',bytes_('')) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/managers.py", line 641, in temp | |
token, exp = self._create(typeid, *args, **kwds) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/managers.py", line 539, in _create | |
conn = self._Client(self._address, authkey=self._authkey) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/connection.py", line 149, in Client | |
answer_challenge(c, authkey) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/connection.py", line 383, in answer_challenge | |
message = connection.recv_bytes(256) # reject large message | |
IOError: [Errno 35] Resource temporarily unavailable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment