Unverified Commit 347f9423 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Put pytestmark at top of file (#8032)

parent 1101c3dc
...@@ -52,6 +52,10 @@ from torchvision.transforms.v2.functional._geometry import _get_perspective_coef ...@@ -52,6 +52,10 @@ from torchvision.transforms.v2.functional._geometry import _get_perspective_coef
from torchvision.transforms.v2.functional._utils import _get_kernel, _register_kernel_internal from torchvision.transforms.v2.functional._utils import _get_kernel, _register_kernel_internal
# turns all warnings into errors for this module
pytestmark = pytest.mark.filterwarnings("error")
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
def fix_rng_seed(): def fix_rng_seed():
set_rng_seed(0) set_rng_seed(0)
...@@ -539,10 +543,6 @@ def reference_affine_bounding_boxes_helper(bounding_boxes, *, affine_matrix, new ...@@ -539,10 +543,6 @@ def reference_affine_bounding_boxes_helper(bounding_boxes, *, affine_matrix, new
) )
# turns all warnings into errors for this module
pytestmark = pytest.mark.filterwarnings("error")
class TestResize: class TestResize:
INPUT_SIZE = (17, 11) INPUT_SIZE = (17, 11)
OUTPUT_SIZES = [17, [17], (17,), [12, 13], (12, 13)] OUTPUT_SIZES = [17, [17], (17,), [12, 13], (12, 13)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment