[issue38942] Possible assertion failures in csv.Dialect()

2021-09-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> Assertion failure in csv module ___ Python tracker _

[issue38942] Possible assertion failures in csv.Dialect()

2021-09-11 Thread Irit Katriel
Irit Katriel added the comment: The patch is missing a unit test. -- nosy: +iritkatriel stage: patch review -> test needed versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker _

[issue38942] Possible assertion failures in csv.Dialect()

2019-11-29 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +16897 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17415 ___ Python tracker ___ __

[issue38942] Possible assertion failures in csv.Dialect()

2019-11-29 Thread Zackery Spytz
New submission from Zackery Spytz : dialect_new() in Modules/_csv.c calls PyObject_GetAttrString() repeatedly without checking if an error occurred. If an exception (like MemoryError) is raised during one of the PyObject_GetAttrString() calls, an assertion failure will occur during the next c