summaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-14 13:16:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-14 13:16:19 +0000
commitdea1ff8e8ce88840434d53977ff62683240f5b8f (patch)
tree60da4e1c735a2d2d89907609c5bb1b1638c4c648 /tests/conftest.py
parentAdding upstream version 2.19.0. (diff)
downloadpre-commit-upstream/2.20.0.tar.xz
pre-commit-upstream/2.20.0.zip
Adding upstream version 2.20.0.upstream/2.20.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/conftest.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index b68a1d0..40c0c05 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -21,24 +21,6 @@ from testing.util import cwd
from testing.util import git_commit
-@pytest.fixture(autouse=True)
-def no_warnings(recwarn):
- yield
- warnings = []
- for warning in recwarn: # pragma: no cover
- message = str(warning.message)
- # ImportWarning: Not importing directory '...' missing __init__(.py)
- if not (
- isinstance(warning.message, ImportWarning) and
- message.startswith('Not importing directory ') and
- ' missing __init__' in message
- ):
- warnings.append(
- f'{warning.filename}:{warning.lineno} {message}',
- )
- assert not warnings
-
-
@pytest.fixture
def tempdir_factory(tmpdir):
class TmpdirFactory: