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 848443b commit ffd7bd5Copy full SHA for ffd7bd5
test/test_transforms_v2.py
@@ -54,7 +54,12 @@
54
55
56
# turns all warnings into errors for this module
57
-pytestmark = pytest.mark.filterwarnings("error")
+pytestmark = [pytest.mark.filterwarnings("error")]
58
+
59
+if sys.version_info[:2] >= (3, 12):
60
+ # torchscript relies on some AST stuff that got deprecated in 3.12,
61
+ # so we have to explicitly ignore those otherwise we'd error on warnings due to the pytestmark filter above.
62
+ pytestmark.append(pytest.mark.filterwarnings("ignore::DeprecationWarning"))
63
64
65
@pytest.fixture(autouse=True)
0 commit comments