Skip to content

Commit ebce88c

Browse files
authored
remove warnings checks
this wasn't all that useful -- and most of it was for checking python 2 things
1 parent d6cc8a1 commit ebce88c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/conftest.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,6 @@
2121
from testing.util import git_commit
2222

2323

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-
4224
@pytest.fixture
4325
def tempdir_factory(tmpdir):
4426
class TmpdirFactory:

0 commit comments

Comments
 (0)