Skip to content

Commit 583b5ff

Browse files
committed
Fix select test on windows
1 parent 1fcdbf7 commit 583b5ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/snippets/stdlib_select.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from testutils import assert_raises, assert_equal
1+
from testutils import assert_raises
22

33
import select
44
import sys
@@ -36,6 +36,9 @@ def fileno(self):
3636
sendr.connect(("127.0.0.1", 9988))
3737
sendr.send(b"aaaa")
3838

39-
res = select.select([recvr], [sendr], [])
39+
rres, wres, xres = select.select([recvr], [sendr], [])
4040

41-
assert_equal(res, ([recvr], [sendr], []))
41+
if "win" not in sys.platform:
42+
assert recvr in rres
43+
44+
assert sendr in wres

0 commit comments

Comments
 (0)