File: Ignore-warnings-about-distutils-setuptools-in-tests.patch

package info (click to toggle)
reproject 0.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,968 kB
  • sloc: python: 6,570; ansic: 953; makefile: 114
file content (22 lines) | stat: -rw-r--r-- 873 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
From: Ole Streicher <olebole@debian.org>
Date: Mon, 19 Sep 2022 14:30:22 +0200
Subject: Ignore warnings about distutils/setuptools in tests

Closes: #1020115
---
 pyproject.toml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
index 0586565..02fc68e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -89,6 +89,8 @@ text_file_format = "rst"
 addopts = ["-ra", "--strict-config", "--strict-markers", "--doctest-rst", "--arraydiff", "--arraydiff-default-format=fits", "--doctest-ignore-import-errors"]
 filterwarnings = [
     "error",
+    'ignore:Setuptools is replacing distutils.:UserWarning',
+    'ignore:Distutils was imported before Setuptools*:UserWarning',
     'ignore:invalid value encountered:RuntimeWarning',
     'ignore:numpy\.ufunc size changed:RuntimeWarning',
     'ignore:numpy\.ndarray size changed:RuntimeWarning',