File: ignore-unclosed-sqlite.patch

package info (click to toggle)
flask-sqlalchemy 3.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 832 kB
  • sloc: python: 2,909; makefile: 27; sh: 14
file content (33 lines) | stat: -rw-r--r-- 905 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Colin Watson <cjwatson@debian.org>
Date: Mon, 6 Jan 2025 17:33:57 +0000
Subject: Ignore unclosed sqlite connection

This matches
https://github.com/ipython/ipykernel/pull/1277/commits/947894b8c0f52cc1ecbfb1600f27112ee1632445,
and there doesn't seem to be a sensible alternative at the moment.

Fixes: #1379

Forwarded: https://github.com/pallets-eco/flask-sqlalchemy/pull/1380
Bug-Debian: https://bugs.debian.org/1090220
Last-Update: 2025-01-06
---
 pyproject.toml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index fec75e3..8c42273 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -49,7 +49,10 @@ exclude = [
 
 [tool.pytest.ini_options]
 testpaths = ["tests"]
-filterwarnings = ["error"]
+filterwarnings = [
+    "error",
+    "ignore:unclosed database in <sqlite3.Connection:ResourceWarning",
+]
 
 [tool.coverage.run]
 branch = true