Fix round 1: the sealed-docket test file's _store() helper never closed its in-memory Store, and extract's file-backed lookup connection was never closed either — both leaked sqlite3 connections that surfaced as nondeterministic ResourceWarnings when GC'd during unrelated tests. Replace _store() with a store fixture that closes on teardown, and have extract() close the private read connection _build_bib_helpers opens for file-backed stores (the :memory: case still reuses store's own connection, left untouched). Also reworded the _build_bib_helpers docstring: attach_callback is None for --no-bib or --no-attach; the store is None only for --no-bib.
4.3 KiB
4.3 KiB