Skip to content

Commit bc5dde8

Browse files
Merge branch 'main' into export-D85862362
2 parents ccf1a36 + 9e37c3a commit bc5dde8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/test_transforms_v2.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@
6767
# turns all warnings into errors for this module
6868
pytestmark = [pytest.mark.filterwarnings("error")]
6969

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

7574

7675
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)