From 4ec877a29018e560e94b8b6493f382c6ff0c2a6c Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Wed, 15 Mar 2023 23:23:14 +0900 Subject: test: add __repr__ to File --- test/util.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/util.py b/test/util.py index ef68ca9..f47d215 100644 --- a/test/util.py +++ b/test/util.py @@ -16,6 +16,9 @@ class File(): self.content = content self.perm = perm + def __repr__(self): + return "".format(self.path, self.size) + def __str__(self): return self.path -- cgit v1.2.3