Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6cc8a1 + ebce88c commit e3dc5b7Copy full SHA for e3dc5b7
1 file changed
tests/conftest.py
@@ -21,24 +21,6 @@
21
from testing.util import git_commit
22
23
24
-@pytest.fixture(autouse=True)
25
-def no_warnings(recwarn):
26
- yield
27
- warnings = []
28
- for warning in recwarn: # pragma: no cover
29
- message = str(warning.message)
30
- # ImportWarning: Not importing directory '...' missing __init__(.py)
31
- if not (
32
- isinstance(warning.message, ImportWarning) and
33
- message.startswith('Not importing directory ') and
34
- ' missing __init__' in message
35
- ):
36
- warnings.append(
37
- f'{warning.filename}:{warning.lineno} {message}',
38
- )
39
- assert not warnings
40
-
41
42
@pytest.fixture
43
def tempdir_factory(tmpdir):
44
class TmpdirFactory:
0 commit comments