361 |
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 | |
def test_confusion_from_os_write_stderr(self): |
channel = self.gw.remote_exec(""" |
import os |
os.write(2, 'test') |
channel.send(channel.receive() * 6) |
channel.send(channel.receive() * 6) |
""") |
channel.send(3) |
res = channel.receive() |
assert res == 18 |
-> channel.send(7) |
res = channel.receive() |
assert res == 42 | |