Skip to content

Commit 96bdbe0

Browse files
NicolasHugpmeier
andauthored
Skip some warning test on 3.10 to avoid MKL-related warning (and failure) (#7379)
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
1 parent 23e3ede commit 96bdbe0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/test_transforms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,6 +2279,7 @@ def test_random_grayscale_with_grayscale_input():
22792279
),
22802280
)
22812281
@pytest.mark.parametrize("from_private", (True, False))
2282+
@pytest.mark.skipif(sys.version_info[:2] == (3, 10), reason="See #7372")
22822283
@pytest.mark.skipif(
22832284
sys.platform in ("win32", "cygwin"),
22842285
reason="assert_run_python_script is broken on Windows. Possible fix in https://github.com/pytorch/vision/pull/7346",

test/test_transforms_v2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,7 @@ def test_sanitize_bounding_boxes_errors():
21062106
sys.platform in ("win32", "cygwin"),
21072107
reason="assert_run_python_script is broken on Windows. Possible fix in https://github.com/pytorch/vision/pull/7346",
21082108
)
2109+
@pytest.mark.skipif(sys.version_info[:2] == (3, 10), reason="See #7372")
21092110
def test_warnings_v2_namespaces(import_statement, call_disable_warning):
21102111
if call_disable_warning:
21112112
source = f"""
@@ -2129,6 +2130,7 @@ def test_warnings_v2_namespaces(import_statement, call_disable_warning):
21292130
sys.platform in ("win32", "cygwin"),
21302131
reason="assert_run_python_script is broken on Windows. Possible fix in https://github.com/pytorch/vision/pull/7346",
21312132
)
2133+
@pytest.mark.skipif(sys.version_info[:2] == (3, 10), reason="See #7372")
21322134
def test_no_warnings_v1_namespace():
21332135
source = """
21342136
import warnings

0 commit comments

Comments
 (0)