persepolis icon indicating copy to clipboard operation
persepolis copied to clipboard

Possible Bug: reading from stdin while output is captured

Open Saijin-Naib opened this issue 2 years ago • 0 comments

System Details:

  • Operating System: Linux

  • Distro(For GNU/Linux and BSD users): Alpine Linux Edge

  • Desktop Environment(For GNU/Linux and BSD users): XFCE 4.16

  • Persepolis Version: 3.2.0

  • How do you install Persepolis? (Repositories, source, ...): Source

  • Please attach log files if crash or paste error message

============================= test session starts ==============================
platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
rootdir: /home/alpine/Sources/aports/testing/persepolis/src/persepolis-3.2.0
collected 0 items / 1 error                                                    

==================================== ERRORS ====================================
________________________ ERROR collecting test/test.py _________________________
test/test.py:40: in <module>
    from persepolis import __main__
persepolis/__main__.py:20: in <module>
    from persepolis.scripts import persepolis
persepolis/scripts/persepolis.py:202: in <module>
    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!

Saijin-Naib avatar Oct 27 '21 14:10 Saijin-Naib