mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-04 14:08:39 +00:00
Use __new__() for case counting
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
2b527a394d
commit
cfd4768df2
2 changed files with 3 additions and 4 deletions
|
|
@ -52,8 +52,9 @@ class BaseTarget(metaclass=ABCMeta):
|
|||
test_function = ""
|
||||
test_name = ""
|
||||
|
||||
def __init__(self) -> None:
|
||||
type(self).count += 1
|
||||
def __new__(cls, *args, **kwargs):
|
||||
cls.count += 1
|
||||
return super().__new__(cls)
|
||||
|
||||
@abstractmethod
|
||||
def arguments(self) -> List[str]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue