[tests] further fix Tester object has no attribute '_testMethodName' (#35781)

* bug fix

* update with more cases

* more entries

* Fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Fanli Lin
2025-01-29 23:05:33 +08:00
committed by GitHub
parent ec7790f0d3
commit f0ae65c198
57 changed files with 57 additions and 110 deletions

View File

@@ -26,7 +26,7 @@ if is_vision_available():
from transformers import OwlViTImageProcessor
class OwlViTImageProcessingTester(unittest.TestCase):
class OwlViTImageProcessingTester:
def __init__(
self,
parent,
@@ -44,7 +44,6 @@ class OwlViTImageProcessingTester(unittest.TestCase):
image_std=[0.26862954, 0.26130258, 0.27577711],
do_convert_rgb=True,
):
super().__init__()
self.parent = parent
self.batch_size = batch_size
self.num_channels = num_channels