File: Don-t-turn-deprecation-and-runtime-warnings-into-errors.patch

package info (click to toggle)
skimage 0.25.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 32,668 kB
  • sloc: python: 60,005; cpp: 2,592; ansic: 1,591; xml: 1,342; javascript: 1,267; makefile: 168; sh: 20
file content (23 lines) | stat: -rw-r--r-- 874 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
From: Ole Streicher <olebole@debian.org>
Date: Thu, 11 Apr 2024 14:16:41 +0200
Subject: Don't turn deprecation and runtime warnings into errors

Runtime warnings often appear on mips64el. While they may be useful for developers,
we just need not know whether the tests pass
---
 pyproject.toml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
index f8c8298..3c0e31e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -191,6 +191,8 @@ python_classes = ["Test*", "*Suite"]
 python_functions = ["time_*", "test_*", "peakmem_*"]
 filterwarnings = [
     "error",
+    "ignore::DeprecationWarning",
+    "ignore::RuntimeWarning",
     "ignore:.*use `imageio` or other I/O packages directly.*:FutureWarning:skimage",
     "ignore:Implicit conversion of A to CSR:scipy.sparse.SparseEfficiencyWarning"  # warn by pyamg in ruge_stuben_solver
 ]