Skip to content
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

Skip some warning test on 3.10 to avoid MKL-related warning (and failure) #7379

Merged
merged 8 commits into from
Mar 2, 2023
1 change: 1 addition & 0 deletions test/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions test/test_transforms_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand All @@ -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
Expand Down