summaryrefslogtreecommitdiff
path: root/lib/zephyr_tests.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zephyr_tests.txt')
-rw-r--r--lib/zephyr_tests.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/zephyr_tests.txt b/lib/zephyr_tests.txt
index d7679fa..b9d2a03 100644
--- a/lib/zephyr_tests.txt
+++ b/lib/zephyr_tests.txt
@@ -250,7 +250,10 @@ tests". In the meantime, a faster and more local test that
synthesizes packets and feeds them through the queuing mechanism will
get us some more coverage.
- >>> read_end, write_end = os.pipe()
+ >>> from socket import AF_UNIX, SOCK_DGRAM, socketpair
+ >>> read_end_sock, write_end_sock = socketpair(AF_UNIX, SOCK_DGRAM)
+ >>> read_end = read_end_sock.fileno()
+ >>> write_end = write_end_sock.fileno()
>>> assert _z.ZSetFD(read_end) == 0
>>> assert _z.ZPending() == 0