File: pytest.ini

package info (click to toggle)
python-ase 3.21.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,936 kB
  • sloc: python: 122,428; xml: 946; makefile: 111; javascript: 47
file content (24 lines) | stat: -rw-r--r-- 977 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
[pytest]
markers =
    calculator: parametrizes calculator tests with calculator factories
    calculator_lite: for calculator tests; include in calculators-lite job
    lint: tests that are really code lint (test_flakes)
    slow: test takes longer than a few seconds

# 1. The "can't resolve package" warning is for oldlibs.
# 2. The rm_rf warning is for issue #600.
# 3. There is a problem where filterwarnings=error removes all ResourceWarnings
# in stead of raising them as errors.
# See: https://github.com/pytest-dev/pytest/issues/5676
# In stead we do "once" for those warnings.
# Actually: We currently just ignore ResourceWarning because even with
# 'once', we will be spammed by 350+ such warnings.
# Someone should start fixing trajectory closing.
filterwarnings =
    error
    ignore::ResourceWarning
    ignore:can't resolve package
    once:.*size changed, may indicate binary incompatibility
    default:\(rm_rf\) error removing

addopts = -p no:cacheprovider