diff --git a/tests/transforms/test_invertibility.py b/tests/transforms/test_invertibility.py index a949e3ed..4d962d85 100644 --- a/tests/transforms/test_invertibility.py +++ b/tests/transforms/test_invertibility.py @@ -13,7 +13,7 @@ def test_all_random_transforms(self): # Remove RandomLabelsToImage as it will add a new image to the subject for t in transform.transforms: if t.name == 'RandomLabelsToImage': - transform.transforms.remove(t) + transform.transforms.remove(t) # noqa: B038 break # Ignore elastic deformation and gamma warnings during execution # Ignore some transforms not invertible