Skip to content

Commit

Permalink
[CI] Less warnings in CI (costs) (pytorch#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Jul 3, 2023
1 parent aedad69 commit d12afa0
Show file tree
Hide file tree
Showing 6 changed files with 985 additions and 792 deletions.
11 changes: 11 additions & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
# LICENSE file in the root directory of this source tree.

import os

import time
import warnings
from collections import defaultdict

import pytest
Expand Down Expand Up @@ -50,3 +52,12 @@ def fin():
CALL_TIMES[name] = CALL_TIMES[name] + duration

request.addfinalizer(fin)


@pytest.fixture(autouse=True)
def set_warnings() -> None:
warnings.filterwarnings(
"ignore",
category=UserWarning,
message=r"Lazy modules are a new feature under heavy development",
)
Loading

0 comments on commit d12afa0

Please sign in to comment.