-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 3.12 CI jobs #8293
Comments
Very excited about this. I'm not sure if the pytorch deprecation warnings were handled by pytorch itself, but I wanted to point to an obscur error message that we "addressed" at conda-forge. the AST in python 3.12 issues a few warnings to pytorch, so with the strict warning catching of some of the tests, the test suite doesn't pass with 3.12. We relaxed them with a small patch diff --git a/test/test_transforms_v2_refactored.py b/test/test_transforms_v2_refactored.py
index e18beb35a4..142e3f2d43 100644
--- a/test/test_transforms_v2_refactored.py
+++ b/test/test_transforms_v2_refactored.py
@@ -416,7 +416,10 @@ def reference_affine_bounding_boxes_helper(bounding_boxes, *, affine_matrix, new
# turns all warnings into errors for this module
-pytestmark = pytest.mark.filterwarnings("error")
+pytestmark = [
+ pytest.mark.filterwarnings("error"),
+ pytest.mark.filterwarnings("ignore::DeprecationWarning"),
+]
class TestResize: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The next version should support 3.12 so we should make sure to cover that in our CI jobs.
Let's also merge #8119 and #8280
Just delaying this a bit until #8292 is managed.
Note: 3.8 removal won't happen before 2.4 pytorch/pytorch#120718
The text was updated successfully, but these errors were encountered: