debug: num_fds is posix-only

This commit is contained in:
Aldo Cortesi 2016-06-11 21:25:34 +12:00
parent 0848d1085e
commit 5566a1f0e6

View File

@ -44,7 +44,8 @@ def dump_info(sig, frm, file=sys.stdout): # pragma: no cover
print("Summary", file=file)
print("=======", file=file)
print("num threads: ", p.num_threads(), file=file)
print("num fds: ", p.num_fds(), file=file)
if hasattr(p, "num_fds"):
print("num fds: ", p.num_fds(), file=file)
print("memory: ", p.memory_info(), file=file)
print(file=file)