We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acccf86 commit 9e37c3aCopy full SHA for 9e37c3a
test/test_transforms_v2.py
@@ -57,10 +57,9 @@
57
# turns all warnings into errors for this module
58
pytestmark = [pytest.mark.filterwarnings("error")]
59
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"))
+# 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"))
64
65
66
@pytest.fixture(autouse=True)
0 commit comments