./devel/py-stdio-mgr, Context manager for mocking/wrapping stdin/stdout/stderr

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.0.1, Package name: py310-stdio-mgr-1.0.1, Maintainer: pkgsrc-users

This modules helps in automating testing actual console input &
output of user-facing components.

While some functionality here is more or less duplicative of
redirect_stdout and redirect_stderr in contextlib within the standard
library, it provides (i) a much more concise way to mock both stdout
and stderr at the same time, and (ii) a mechanism for mocking stdin,
which is not available in contextlib.


Master sites:

Filesize: 7.053 KB

Version history: (Expand)


CVS history: (Expand)


   2023-05-06 10:52:25 by Thomas Klausner | Files touched by this commit (4)
Log message:
devel/py-stdio-mgr: import py-stdio-mgr-1.0.1

This modules helps in automating testing actual console input &
output of user-facing components.

While some functionality here is more or less duplicative of
redirect_stdout and redirect_stderr in contextlib within the standard
library, it provides (i) a much more concise way to mock both stdout
and stderr at the same time, and (ii) a mechanism for mocking stdin,
which is not available in contextlib.