-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.ini
More file actions
90 lines (81 loc) · 3.54 KB
/
Copy pathpytest.ini
File metadata and controls
90 lines (81 loc) · 3.54 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
## pytest.ini
## Pytest Writing and running tests quickly.
[pytest]
## https://docs.pytest.org/en/stable/example/pythoncollection.html#changing-directory-recursion
norecursedirs =
.ipynb_checkpoints
auto_building_tools
docs
galleries examples
third_party
tools
#lightnumpy/
## Additional command-line options for pytest
## https://docs.pytest.org/en/stable/how-to/output.html#modifying-python-traceback-printing
addopts =
## show local variables (shortcut)
-l
## shorter traceback format for easier reading
--tb=short
# Disable warnings for cleaner output
--disable-warnings
# Stop testing after the first failure
--maxfail=1
# Enable verbose output
-v
"-ra"
"--strict-config"
"--strict-markers"
## Use JUnit XML format for test results
junit_family = xunit2
## Additional configuration options
# python_files =
# test_*.py # Files to consider as test files
# *_test.py # Alternatively, any file ending with _test
## Specify any markers you want to use in your tests
# markers =
# slow: mark test as slow to run
# integration: mark test as part of integration tests
log_cli_level = "INFO"
xfail_strict = true
## Configure test run settings
filterwarnings =
# Treat these warnings as errors
error
# Always show this specific warning from scipy
always::scipy._lib._testutils.FPUModeChangeWarning
# Ignore deprecation warnings from IPython
ignore:.*deprecated and ignored since IPython.*:DeprecationWarning
# Show LAPACK bug warning only once
once:.*LAPACK bug 0038.*:RuntimeWarning
# Ignore import warnings related to module spec
ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning
# Ignore specific pytest configuration warnings
ignore:assertions not in test modules or plugins:pytest.PytestConfigWarning
ignore:'environmentfilter' is renamed to 'pass_environment'
ignore:'contextfunction' is renamed to 'pass_context'
# Ignore deprecation warnings related to distutils
ignore:.*The distutils.* is deprecated.*:DeprecationWarning
ignore:\s*.*numpy.distutils.*:DeprecationWarning
ignore:.*`numpy.core` has been made officially private.*:DeprecationWarning
ignore:.*In the future `np.long` will be defined as.*:FutureWarning
# Ignore specific warnings from CuPy
ignore:.*JAX is multithreaded.*:RuntimeWarning
ignore:.*The 2023.12 version of the array API specification is still preliminary.*:UserWarning
ignore:^Using the slower implementation::cupy
ignore:Using the slower implementation::cupy
ignore:Jitify is performing a one-time only warm-up::cupy
# Ignore specific deprecation warnings from lightnumpy
ignore:.*deprecated.*:DeprecationWarning
ignore:.*deprecated.*:UserWarning
ignore::FutureWarning
# Ignore convergence warnings from sklearn
ignore::sklearn.exceptions.ConvergenceWarning
markers =
slow: Tests that are very slow
xslow: mark test as extremely slow (not run unless explicitly requested)
xfail_on_32bit: mark test as failing on 32-bit platforms
array_api_backends: test iterates on all array API backends
array_api_compatible: test is compatible with array API
skip_xp_backends(backends, reason=None, np_only=False, cpu_only=False, exceptions=None): mark the desired skip configuration for the `skip_xp_backends` fixture
xfail_xp_backends(backends, reason=None, np_only=False, cpu_only=False, exceptions=None): mark the desired xfail configuration for the `xfail_xp_backends` fixture