Skip to content

Commit

Permalink
Merge pull request #2454 from pre-commit/asottile-patch-1
Browse files Browse the repository at this point in the history
remove warnings checks
  • Loading branch information
asottile committed Jul 10, 2022
2 parents d6cc8a1 + ebce88c commit e3dc5b7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/conftest.py
Expand Up @@ -21,24 +21,6 @@
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:
Expand Down

0 comments on commit e3dc5b7

Please sign in to comment.