[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:
@@ -26,7 +26,7 @@ if is_vision_available():
|
||||
from transformers import BlipImageProcessor
|
||||
|
||||
|
||||
class BlipImageProcessingTester(unittest.TestCase):
|
||||
class BlipImageProcessingTester:
|
||||
def __init__(
|
||||
self,
|
||||
parent,
|
||||
@@ -43,7 +43,6 @@ class BlipImageProcessingTester(unittest.TestCase):
|
||||
image_std=[0.26862954, 0.26130258, 0.27577711],
|
||||
do_convert_rgb=True,
|
||||
):
|
||||
super().__init__()
|
||||
size = size if size is not None else {"height": 20, "width": 20}
|
||||
self.parent = parent
|
||||
self.batch_size = batch_size
|
||||
|
||||
Reference in New Issue
Block a user