File: .coveragerc

package info (click to toggle)
python-gevent 24.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,364 kB
  • sloc: python: 138,768; ansic: 87,807; sh: 12,548; makefile: 2,379; javascript: 108
file content (65 lines) | stat: -rw-r--r-- 2,050 bytes parent folder | download | duplicates (2)
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
[run]
# In coverage 4.0b3, concurrency=gevent is exactly equivalent to
# concurrency=greenlet, except it causes coverage itself to import
# gevent. That messes up our coverage numbers for top-level
# statements, so we use greenlet instead. See https://github.com/gevent/gevent/pull/655#issuecomment-141198002
# See also .coveragerc-pypy
concurrency = greenlet
parallel = True
source = gevent
omit =
    # This is for <= 2.7.8, which we don't test
    */gevent/_ssl2.py
    */gevent/libev/_corecffi_build.py
    */gevent/libuv/_corecffi_build.py
    */gevent/win32util.py
    # having concurrency=greenlet means that the Queue class
    # which is used from multiple real threads doesn't
    # properly get covered.
    */gevent/_threading.py
    # local.so sometimes gets included, and it can't be parsed
    # as source, so it fails the whole process.
    *.so
    */gevent/libev/*.so
    */gevent/libuv/*.so
    */gevent/resolver/*.so
# New in 5.0; required for the GHA coveralls submission.
# Perhaps this obsoletes the source section in [paths]?
relative_files = True

[report]
# Coverage is run on Linux under cPython 2/3 and pypy
exclude_lines =
    pragma: no cover
    def __repr__
    raise AssertionError
    raise NotImplementedError
    except ImportError:
    if __name__ == .__main__.:
    if sys.platform == 'win32':
    if mswindows:
    if is_windows:
    if WIN:
    self.fail
omit =
    # local.so sometimes gets included, and it can't be parsed
    # as source, so it fails the whole process.
    # coverage 4.5 needs this specified here, 4.4.2 needed it in [run]
    *.so
    /tmp/test_*
    # Third-party vendored code
    src/gevent/_tblib.py

# [paths]
# # Combine source and paths from the Travis CI installs so they all get
# # collapsed during combining. Otherwise, coveralls.io reports
# # many different files (/lib/pythonX.Y/site-packages/gevent/...) and we don't
# # get a good aggregate number.
# source =
#      src/
#      */lib/*/site-packages/
#      */pypy*/site-packages/

# Local Variables:
# mode: conf
# End: