Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions test/test_transforms_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@
# turns all warnings into errors for this module
pytestmark = [pytest.mark.filterwarnings("error")]

if sys.version_info[:2] >= (3, 12):
# torchscript relies on some AST stuff that got deprecated in 3.12,
# so we have to explicitly ignore those otherwise we'd error on warnings due to the pytestmark filter above.
pytestmark.append(pytest.mark.filterwarnings("ignore::DeprecationWarning"))
# Since torchscript is deprecated, we are explicitly ignoring those warnings.
# Otherwise we'd error on warnings due to the pytestmark filter above.
pytestmark.append(pytest.mark.filterwarnings("ignore::DeprecationWarning"))


@pytest.fixture(autouse=True)
Expand Down