File: pytest.ini

package info (click to toggle)
python-cheroot 10.0.1%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,048 kB
  • sloc: python: 6,222; makefile: 15
file content (100 lines) | stat: -rw-r--r-- 3,984 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
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
91
92
93
94
95
96
97
98
99
100
[pytest]
addopts =
  # `pytest-xdist`:
  --numprocesses=auto

  # Show 10 slowest invocations:
  --durations=10

  # A bit of verbosity doesn't hurt:
  -v

  # Report all the things == -rxXs:
  -ra

  # Show values of the local vars in errors:
  --showlocals

  # Autocollect and invoke the doctests from all modules:
  --doctest-modules

  # Dump the test results in junit format:
  --junitxml=.test-results/pytest/test.xml

  # `pytest-cov`:
  --cov=cheroot
  --cov-report term-missing:skip-covered
  --cov-report xml:.test-results/pytest/cov.xml

  # pre-load an in-tree plugin
  -p cheroot.test._pytest_plugin

doctest_optionflags = ALLOW_UNICODE ELLIPSIS

filterwarnings =
  error

  # cryptography == 38 warning:
  # `cryptography.utils.CryptographyDeprecationWarning` happens but we
  # cannot import it because of the chicken-egg nature of its
  # declaration. So we're forced to use its superclass that is in
  # fact, not a `DeprecationWarning` but a `UserWarning`.
  # Ref: https://github.com/pyca/cryptography/issues/5335
  ignore:Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.:UserWarning:cryptography
  ignore:Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.:UserWarning:OpenSSL._util
  ignore:Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.:UserWarning:OpenSSL.crypto

  # cryptography == 39 warning:
  # `cryptography.utils.CryptographyDeprecationWarning` happens but we
  # cannot import it because of the chicken-egg nature of its
  # declaration. So we're forced to use its superclass that is in
  # fact, not a `DeprecationWarning` but a `UserWarning`.
  # Ref: https://github.com/pyca/cryptography/issues/5335
  ignore:Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography .40.0. will be the last to support Python 3.6.:UserWarning:

  # cryptography == 40 warning:
  # `cryptography.utils.CryptographyDeprecationWarning` happens but we
  # cannot import it because of the chicken-egg nature of its
  # declaration. So we're forced to use its superclass that is in
  # fact, not a `DeprecationWarning` but a `UserWarning`.
  # Ref: https://github.com/pyca/cryptography/issues/5335
  ignore:Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.:UserWarning:

  # FIXME: drop once certifi fixes their use of `importlib.resources`
  # Ref: https://github.com/certifi/python-certifi/issues/183
  ignore:path is deprecated. Use files.. instead. Refer to https.//importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.:DeprecationWarning:certifi.core

  # FIXME: Try to figure out what causes this and ensure that the socket
  # FIXME: gets closed.
  ignore:unclosed <socket.socket fd=:ResourceWarning
  ignore:unclosed <ssl.SSLSocket fd=:ResourceWarning

  # FIXME: Python 3.13 no longer ignores IOBase errors raised by the close(),
  # FIXME: which exposed a possible race condition in test_conn test cleanup.
  # Ref: https://github.com/cherrypy/cheroot/issues/734
  ignore:Exception ignored in. <function IOBase.__del__:pytest.PytestUnraisableExceptionWarning

junit_duration_report = call
junit_family = xunit2
junit_suite_name = cheroot_test_suite

# A mapping of markers to their descriptions allowed in strict mode:
markers =

minversion = 4.6.6

# Optimize pytest's lookup by restricting potentially deep dir tree scan:
norecursedirs =
  build
  cheroot.egg-info
  dist
  docs
  .cache
  .eggs
  .git
  .github
  .tox

testpaths = cheroot/test/

xfail_strict = true