[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:
@@ -35,7 +35,7 @@ if is_torch_available():
|
||||
import torch
|
||||
|
||||
|
||||
class Idefics3ImageProcessingTester(unittest.TestCase):
|
||||
class Idefics3ImageProcessingTester:
|
||||
def __init__(
|
||||
self,
|
||||
parent,
|
||||
@@ -58,7 +58,6 @@ class Idefics3ImageProcessingTester(unittest.TestCase):
|
||||
do_image_splitting=True,
|
||||
resample=PILImageResampling.LANCZOS,
|
||||
):
|
||||
super().__init__()
|
||||
self.size = size if size is not None else {"longest_edge": max_resolution}
|
||||
self.parent = parent
|
||||
self.batch_size = batch_size
|
||||
|
||||
Reference in New Issue
Block a user