[issue44687] io.BufferedReader:peek() closes underlying file, breaking peek/read expectations

Jun De report at bugs.python.org
Sat Sep 25 00:58:31 EDT 2021


Jun De <solsticedante at gmail.com> added the comment:

Awesome! To be honest I was very inclined to add test cases for this edge case, but while some existing test cases use native objects like io.BytesIO, the one that our edge case uses is HTTPResponse from `urllib3.response.py`. Should I still go ahead with writing the test cases in this case? I worry about creating new dependencies for the python repository.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44687>
_______________________________________


More information about the Python-bugs-list mailing list