Author erlendaasland
Recipients berker.peksag, erlendaasland, rhettinger, serhiy.storchaka
Date 2021-01-18.12:16:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I need some help debugging the Windows issues. There are a handful of tests that fail because the sqlite3 is clinging on to objects or file descriptors. AFAICT, a GC bug. For example, test_open_uri fails with:

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: [...]

I've tried the following, with no success:
- Remove GC from the Connection type
- Remove the clear method, and modify traverse to only visit Py_TYPE(self) (
- Add heap type GC (visit type, GC tracking) to all pysqlite types

Maybe it's best to reopen GH-24135 and continue the work with multi-phase init? That is finalise bpo-40956, add heap type GC (, establish module state, implement multi-phase init, and then revisit this issue.
Date User Action Args
2021-01-18 12:16:36erlendaaslandsetrecipients: + erlendaasland, rhettinger, berker.peksag, serhiy.storchaka
2021-01-18 12:16:36erlendaaslandsetmessageid: <>
2021-01-18 12:16:36erlendaaslandlinkissue42862 messages
2021-01-18 12:16:36erlendaaslandcreate