aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-08-28 17:51:46 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-08-28 17:51:46 +0200
commitfb3df181b71d3bed23f43ea4a6fcd8111d4c8690 (patch)
tree6244848a25c3b45aa1b29093ff28c94f5e7b0c3c /test.py
parent63d58003edaf5621b5fbfc921583ba18d378ba00 (diff)
parentcbc2c50efaf06f5b925bb87c445994e9db6e1719 (diff)
downloadminishell_test-fb3df181b71d3bed23f43ea4a6fcd8111d4c8690.tar.gz
minishell_test-fb3df181b71d3bed23f43ea4a6fcd8111d4c8690.tar.bz2
minishell_test-fb3df181b71d3bed23f43ea4a6fcd8111d4c8690.zip
Merge branch 'master' of cacharle.xyz:/srv/git/minishell_test into master
Diffstat (limited to 'test.py')
-rw-r--r--test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.py b/test.py
index 59e2910..e9e298b 100644
--- a/test.py
+++ b/test.py
@@ -6,7 +6,7 @@
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/06/16 21:48:50 by charles #+# #+# #
-# Updated: 2020/08/19 16:09:55 by charles ### ########.fr #
+# Updated: 2020/08/27 21:02:56 by charles ### ########.fr #
# #
# ############################################################################ #
@@ -34,8 +34,8 @@ class Captured:
self.is_timeout = is_timeout
def __eq__(self, other: 'Result') -> bool:
- if self.is_timeout and other.is_timeout:
- return True
+ if self.is_timeout:
+ return self.is_timeout == other.is_timeout
return (self.output == other.output and
self.status == other.status and
all([x == y for x, y in zip(self.files_content, other.files_content)]))