Skip to content

Commit 9e37c3a

Browse files
disable torchscript deprecation errors (#9270)
1 parent acccf86 commit 9e37c3a

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
@@ -57,10 +57,9 @@
5757
# turns all warnings into errors for this module
5858
pytestmark = [pytest.mark.filterwarnings("error")]
5959

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

6564

6665
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)