From 96bdbe052ad76cee2641892f6bb27bb5c376716e Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 2 Mar 2023 12:04:34 +0000 Subject: [PATCH] Skip some warning test on 3.10 to avoid MKL-related warning (and failure) (#7379) Co-authored-by: Philip Meier --- test/test_transforms.py | 1 + test/test_transforms_v2.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/test/test_transforms.py b/test/test_transforms.py index b6eccba421b..7c2550f49c6 100644 --- a/test/test_transforms.py +++ b/test/test_transforms.py @@ -2279,6 +2279,7 @@ def test_random_grayscale_with_grayscale_input(): ), ) @pytest.mark.parametrize("from_private", (True, False)) +@pytest.mark.skipif(sys.version_info[:2] == (3, 10), reason="See #7372") @pytest.mark.skipif( sys.platform in ("win32", "cygwin"), reason="assert_run_python_script is broken on Windows. Possible fix in https://github.com/pytorch/vision/pull/7346", diff --git a/test/test_transforms_v2.py b/test/test_transforms_v2.py index 9fe7bbf51f2..e893858aff3 100644 --- a/test/test_transforms_v2.py +++ b/test/test_transforms_v2.py @@ -2106,6 +2106,7 @@ def test_sanitize_bounding_boxes_errors(): sys.platform in ("win32", "cygwin"), reason="assert_run_python_script is broken on Windows. Possible fix in https://github.com/pytorch/vision/pull/7346", ) +@pytest.mark.skipif(sys.version_info[:2] == (3, 10), reason="See #7372") def test_warnings_v2_namespaces(import_statement, call_disable_warning): if call_disable_warning: source = f""" @@ -2129,6 +2130,7 @@ def test_warnings_v2_namespaces(import_statement, call_disable_warning): sys.platform in ("win32", "cygwin"), reason="assert_run_python_script is broken on Windows. Possible fix in https://github.com/pytorch/vision/pull/7346", ) +@pytest.mark.skipif(sys.version_info[:2] == (3, 10), reason="See #7372") def test_no_warnings_v1_namespace(): source = """ import warnings