[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report Antoine. It is now fixed in 3.7 and master branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread miss-islington
miss-islington added the comment: New changeset 0f352d44e7c14c1c93e3999402c85512b9d5a6ca by Miss Islington (bot) in branch '3.7': bpo-37054, _pyio: Fix BytesIO and TextIOWrapper __del__() (GH-13601) https://github.com/python/cpython/commit/0f352d44e7c14c1c93e3999402c85512b9d5a6ca --

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +13510 pull_request: https://github.com/python/cpython/pull/13604 ___ Python tracker ___ __

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset a3568417c49f36860393075b21c93996a5f6799b by Victor Stinner in branch 'master': bpo-37054, _pyio: Fix BytesIO and TextIOWrapper __del__() (GH-13601) https://github.com/python/cpython/commit/a3568417c49f36860393075b21c93996a5f6799b -- _

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Antoine: > Or to add `_buffer = None` at the class level. Ok, I wrote bpo-13601 to implement this idea and fix test_memoryio warnings. -- ___ Python tracker ___

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13601 ___ Python tracker ___ _

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread STINNER Victor
STINNER Victor added the comment: Multiple tests log an "Exception ignored", but all of them come from the Python implementation. The problem is that _pyio.BytesIO and _pyio.TextIOWrapper initialize their self._buffer and self._seekable attribute "later" in the constructor, but then expect

[issue37054] Ignored exceptions in test_memoryio

2019-05-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Or to add `_buffer = None` at the class level. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue37054] Ignored exceptions in test_memoryio

2019-05-26 Thread Antoine Pitrou
New submission from Antoine Pitrou : I see the following kind of exceptions when running test_memoryio: Exception ignored in: Traceback (most recent call last): File "/home/antoine/cpython/default/Lib/_pyio.py", line 409, in __del__ self.close() File "/home/antoine/cpython/default/Lib/