Skip to content

Commit

Permalink
simplify guard
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Jul 25, 2023
1 parent 99c6700 commit 835f40c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test_transforms_v2_refactored.py
Original file line number Diff line number Diff line change
Expand Up @@ -1669,8 +1669,12 @@ def forward(self, image, label):
)
@pytest.mark.parametrize("unpack", [True, False])
def test_packed_unpacked(self, transform_clss, unpack):
if (unpack and any(issubclass(cls, self.PackedInputTransform) for cls in transform_clss)) or (
not unpack and any(issubclass(cls, self.UnpackedInputTransform) for cls in transform_clss)
if any(
unpack
and issubclass(cls, self.PackedInputTransform)
or not unpack
and issubclass(cls, self.UnpackedInputTransform)
for cls in transform_clss
):
return

Expand Down

0 comments on commit 835f40c

Please sign in to comment.