python-capturer icon indicating copy to clipboard operation
python-capturer copied to clipboard

Easily capture stdout/stderr of the current process and subprocesses

Results 8 python-capturer issues
Sort by recently updated
recently updated
newest added

Capture stdout to both a file and as text

This example doesn't work ``` import subprocess from capturer import CaptureOutput with CaptureOutput() as capturer: # Generate some output from Python. print("Output from Python") # Generate output from a subprocess....

If the forked process dies for some reason before started_event.set() is called the parent process will hang on started_event.wait(). This adds a timeout to started_event.wait() to avoid the parent process...

`CaptureOutput` fails to initialize. Partial environment information: Mac OS, Python 3.8, and `virtualenv`. A colleague reports this problem. If I get more environment information I will add it. Stack trace:...

I've been unable to get this running using Python 3.8.5. Was trying to run the example in the README without success, so tried running the test suite instead: ``` =================================================...

If capturer is run inside the PyCharm IDE environment, the following error occurs: ``` Error Traceback (most recent call last): File "/Users/charles3/prog/opu/python/test/test_logging.py", line 27, in test_log_debug with CaptureOutput() as capturer:...

The project `README.rst` contains a "Status" section which was composed in the repo's very first commit, and [has remained unchanged ever since](https://github.com/xolox/python-capturer/blame/a430a9fd13007fa6924ef37f912e855deafd0975/README.rst#L17). Which means that both on the landing page...

Using capturer inside a pytest test that uses the pytest fixture `capsys` leads to the following error in the call to CaptureOutput(): ``` =================================== FAILURES =================================== ________________________________ test_capturer _________________________________ capsys...