Skip to content

Commit d42147f

Browse files
committed
DEMO COMMIT ONLY
❯ PYTHONPATH=$(pwd)/tests:$PYTHONPATH python -m unittest -v tests.first_stage_test.ConnectionTest.test_stdin_non_blocking test_stdin_non_blocking (tests.first_stage_test.ConnectionTest.test_stdin_non_blocking) Test that first stage works with non-blocking STDIN ... Traceback (most recent call last): File "<string>", line 1, in <module> File "<string>", line 22, in <module> BlockingIOError: [Errno 11] Resource temporarily unavailable ERROR ====================================================================== ERROR: test_stdin_non_blocking (tests.first_stage_test.ConnectionTest.test_stdin_non_blocking) Test that first stage works with non-blocking STDIN ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/mhartmay/storage/git/mitogen/tests/first_stage_test.py", line 96, in test_stdin_non_blocking ctx = self.router._connect(DummyConnectionNonBlocking, connect_timeout=0.5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mhartmay/storage/git/mitogen/mitogen/parent.py", line 2444, in _connect conn.connect(context=context) File "/home/mhartmay/storage/git/mitogen/mitogen/parent.py", line 1726, in connect raise self.exception mitogen.parent.EofError: EOF on stream; last 100 lines received: MITO000 Signed-off-by: Marc Hartmayer <[email protected]>
1 parent 59c94a5 commit d42147f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mitogen/parent.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,9 +1450,6 @@ def _first_stage():
14501450
C=''.encode()
14511451
V='V'
14521452
while n>len(C) and V:
1453-
rl,_,_=select.select([0],[],[],t)
1454-
if not rl:
1455-
raise Exception("TimeoutError")
14561453
V=os.read(0,n-len(C))
14571454
C+=V
14581455
C=zlib.decompress(C)

0 commit comments

Comments
 (0)