Skip to content

Commit

Permalink
Put pytestmark at top of file (#8032)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Oct 9, 2023
1 parent 1101c3d commit 347f942
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_transforms_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
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)
def fix_rng_seed():
set_rng_seed(0)
Expand Down Expand Up @@ -539,10 +543,6 @@ def affine_bounding_boxes(bounding_boxes):
)


# turns all warnings into errors for this module
pytestmark = pytest.mark.filterwarnings("error")


class TestResize:
INPUT_SIZE = (17, 11)
OUTPUT_SIZES = [17, [17], (17,), [12, 13], (12, 13)]
Expand Down

0 comments on commit 347f942

Please sign in to comment.