From 3fb0a6a2aeb30a40c6bbd73853a5acfb1bc9eec9 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 12 Oct 2009 15:42:52 +0000 Subject: Print only some fields of ZGetDestAddr to dodge sin_len Print only the fields of ZGetDestAddr we care about checking -- the address family and address. We can't just print the whole structure and selectively examine fields, because we can't easily determine whether sin_len will be present or not. (from Ken Raeburn) --- lib/zephyr_tests.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/zephyr_tests.txt b/lib/zephyr_tests.txt index 2548471..e3fe0ab 100644 --- a/lib/zephyr_tests.txt +++ b/lib/zephyr_tests.txt @@ -188,13 +188,12 @@ Trivial test of ZOpenPort and ZClosePort: also cast it to sockaddr_in and look at the address and port...) >>> assert port != 0 - >>> zephyr_tests.ctypes_pprint(_z.ZGetDestAddr()) - ... # doctest: +ELLIPSIS - sin_family AF_INET(2) - sin_port ... - sin_addr 127.0.0.1 - sin_zero [ignored] - + >>> print type(_z.ZGetDestAddr()) + + >>> print _z.ZGetDestAddr().sin_family.pformat() + ['AF_INET(2)'] + >>> print _z.ZGetDestAddr().sin_addr.pformat() + ['127.0.0.1'] >>> assert _z.ZClosePort() == 0 >>> assert _z.ZGetFD() == -1 -- cgit v1.2.3