Debian Codegraph @

debian/patches/ignore-unclosed-sqlite.patch

raw
1 From: Colin Watson <[email protected]>
2 Date: Mon, 6 Jan 2025 17:33:57 +0000
3 Subject: Ignore unclosed sqlite connection
4
5 This matches
6 https://github.com/ipython/ipykernel/pull/1277/commits/947894b8c0f52cc1ecbfb1600f27112ee1632445,
7 and there doesn't seem to be a sensible alternative at the moment.
8
9 Fixes: #1379
10
11 Forwarded: https://github.com/pallets-eco/flask-sqlalchemy/pull/1380
12 Bug-Debian: https://bugs.debian.org/1090220
13 Last-Update: 2025-01-06
14 ---
15 pyproject.toml | 5 ++++-
16 1 file changed, 4 insertions(+), 1 deletion(-)
17
18 diff --git a/pyproject.toml b/pyproject.toml
19 index fec75e3..8c42273 100644
20 --- a/pyproject.toml
21 +++ b/pyproject.toml
22 @@ -49,7 +49,10 @@ exclude = [
23
24 [tool.pytest.ini_options]
25 testpaths = ["tests"]
26 -filterwarnings = ["error"]
27 +filterwarnings = [
28 + "error",
29 + "ignore:unclosed database in <sqlite3.Connection:ResourceWarning",
30 +]
31
32 [tool.coverage.run]
33 branch = true