[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

@@ -35,7 +35,7 @@ if is_torch_available():
import torch
class AriaImageProcessingTester(unittest.TestCase):
class AriaImageProcessingTester:
def __init__(
self,
parent,
@@ -55,7 +55,6 @@ class AriaImageProcessingTester(unittest.TestCase):
do_convert_rgb=True,
resample=PILImageResampling.BICUBIC,
):
super().__init__()
self.size = size if size is not None else {"longest_edge": max_resolution}
self.parent = parent
self.batch_size = batch_size