Skip to content

Commit

Permalink
Skip some warning test on 3.10 to avoid MKL-related warning (and fail…
Browse files Browse the repository at this point in the history
…ure) (#7379)

Co-authored-by: Philip Meier <[email protected]>
  • Loading branch information
NicolasHug and pmeier authored Mar 2, 2023
1 parent 23e3ede commit 96bdbe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit 96bdbe0

Please sign in to comment.