persepolisdm / persepolis

Persepolis Download Manager is a GUI for aria2.
https://persepolisdm.github.io
GNU General Public License v3.0
6.13k stars 649 forks source link

Possible Bug: reading from stdin while output is captured #887

Closed Saijin-Naib closed 2 years ago

Saijin-Naib commented 2 years ago

System Details:

==================================== ERRORS ==================================== ____ ERROR collecting test/test.py _____ test/test.py:40: in from persepolis import main persepolis/main.py:20: in from persepolis.scripts import persepolis persepolis/scripts/persepolis.py:202: in text_length_bytes = sys.stdin.buffer.read(4) /usr/lib/python3.9/site-packages/_pytest/capture.py:217: in read raise OSError( E OSError: pytest: reading from stdin while output is captured! Consider using -s. ------------------------------- Captured stdout -------------------------------- persepolis is running from test folder

{"enable": true, "version": "1.85"}



**Issue Description and steps to reproduce:**
I am looking to package persepolis for Alpine Linux, and the pytest test suite flagged the above as an error, failing the build.

Is this something that can be fixed and a new release tag made so that I can continue packaging it?

Thanks!