Commit d98e42e3 authored by Kirill Smelkov's avatar Kirill Smelkov

golang: Don't verify ._recvq and ._sendq of nil channel

Nil channel will soon be changed to be represented by underlying NULL C
pointer and there won't be channel object for nil and correspondingly
recv/send queues won't be there. -> Prepare for that and don't check for
recvq/sendq on nil channel.
parent 049ba6ff
......@@ -353,7 +353,6 @@ def test_select():
done = chan()
def _():
waitBlocked(ch.send)
assert len(z._sendq) == len(z._recvq) == 0
assert ch.recv() == 'c'
done.close()
go(_)
......@@ -374,7 +373,6 @@ def test_select():
done = chan()
def _():
waitBlocked(ch.recv)
assert len(z._sendq) == len(z._recvq) == 0
ch.send('d')
done.close()
go(_)
......
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