-
Notifications
You must be signed in to change notification settings - Fork 214
/
Copy path__init__.py
41 lines (26 loc) · 908 Bytes
/
__init__.py
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
"""pytest-cov: avoid already-imported warning: PYTEST_DONT_REWRITE."""
__version__ = '6.0.0'
import pytest
class CoverageError(Exception):
"""Indicates that our coverage is too low"""
class PytestCovWarning(pytest.PytestWarning):
"""
The base for all pytest-cov warnings, never raised directly.
"""
class CovDisabledWarning(PytestCovWarning):
"""
Indicates that Coverage was manually disabled.
"""
class CovReportWarning(PytestCovWarning):
"""
Indicates that we failed to generate a report.
"""
class CentralCovContextWarning(PytestCovWarning):
"""
Indicates that dynamic_context was set to test_function instead of using the builtin --cov-context.
"""
class DistCovError(Exception):
"""
Raised when dynamic_context is set to test_function and xdist is also used.
See: https://github.com/pytest-dev/pytest-cov/issues/604
"""