Skip to content

Commit c100375

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Put pytestmark at top of file (#8032)
Reviewed By: vmoens Differential Revision: D50789098 fbshipit-source-id: 46cf78e6a5b6a29f7f16838ae5f7aefc18f7601d
1 parent 931af08 commit c100375

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_transforms_v2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
from torchvision.transforms.v2.functional._utils import _get_kernel, _register_kernel_internal
5353

5454

55+
# turns all warnings into errors for this module
56+
pytestmark = pytest.mark.filterwarnings("error")
57+
58+
5559
@pytest.fixture(autouse=True)
5660
def fix_rng_seed():
5761
set_rng_seed(0)
@@ -539,10 +543,6 @@ def affine_bounding_boxes(bounding_boxes):
539543
)
540544

541545

542-
# turns all warnings into errors for this module
543-
pytestmark = pytest.mark.filterwarnings("error")
544-
545-
546546
class TestResize:
547547
INPUT_SIZE = (17, 11)
548548
OUTPUT_SIZES = [17, [17], (17,), [12, 13], (12, 13)]

0 commit comments

Comments
 (0)