Commit 0157c0f1 authored by Martín Ferrari's avatar Martín Ferrari

gah, forgot some testing stuff

parent edb427a8
...@@ -819,9 +819,6 @@ def _x11_forwarder(server, xsock, xaddr): ...@@ -819,9 +819,6 @@ def _x11_forwarder(server, xsock, xaddr):
idx = {} idx = {}
while(True): while(True):
towrite = [x["wr"] for x in idx.values() if x["buf"]] towrite = [x["wr"] for x in idx.values() if x["buf"]]
assert all(map(lambda x: len(idx[idx[fd]["rd"]]["buf"]), towrite))
assert all(map(lambda x: idx[x]["rd"] == x, idx))
assert all(map(lambda x: idx[idx[x]["wr"]]["wr"] == x, idx))
(rr, wr, er) = select.select(toread, towrite, []) (rr, wr, er) = select.select(toread, towrite, [])
if server in rr: if server in rr:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment