| 347 |
| 348 |
| 349 |
| 350 |
| 351 |
| 352 |
| 353 |
| 354 |
| 355 |
| 356 |
| 357 |
| 358 |
| 359 | |
def test_confusion_from_os_write_stdout(self): |
channel = self.gw.remote_exec(""" |
import os |
os.write(1, 'confusion!') |
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 | |