-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpytest.ini
More file actions
20 lines (19 loc) · 887 Bytes
/
Copy pathpytest.ini
File metadata and controls
20 lines (19 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[pytest]
minversion = 7.0
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Filter warnings from dependencies
filterwarnings =
ignore::FutureWarning
# torch.utils.mkldnn decorates its class bodies with @torch.jit.script_method,
# so importing it warns once per method. Reached from diffusers' hooks via
# torch.fx.experimental.optimization - no dw code calls the deprecated API.
# The regex covers both spellings: "is deprecated" and, on Python 3.14+,
# "is not supported".
ignore:`torch\.jit\.script_method` is:DeprecationWarning
# transformers' VITS model calls torch.jit.script at import time, reached
# from diffusers' auto_pipeline via the audioldm2 pipeline whenever a
# pipeline class is loaded lazily - no dw code calls the deprecated API.
ignore:`torch\.jit\.script` is:DeprecationWarning