devel/py-stdio-mgr 1.0.1.1 NetBSD
Context manager for mocking/wrapping stdin/stdout/stderr
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, python
- Package size
- 9.9 KiB, 32.5 KiB installed
Description
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.
Install
Binary package:
pkgin install py311-stdio-mgr
From pkgsrc:
cd /usr/pkgsrc/devel/py-stdio-mgr && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 1.0.1.1 |
| NetBSD 10.1 aarch64 | 1.0.1.1 |
| SmartOS / illumos x86_64 | 1.0.1.1 |
| macOS 15 arm64 | 1.0.1.1 |
Dependencies
Run dependencies 2
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-stdio-mgr-1.0.1.1,py313-stdio-mgr-1.0.1.1,py314-stdio-mgr-1.0.1.1