aboutsummaryrefslogtreecommitdiff
path: root/minishell_test/hooks.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-03-03 12:24:41 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-03-03 12:24:41 +0100
commit820102f9ccdfdfe3ae78c22f803da4db87cb91ba (patch)
treec06d6d1276a6216f7db156448eb0db0ed361ec52 /minishell_test/hooks.py
parent716265929bf861d340c1e71e2f24359875520d3a (diff)
downloadminishell_test-820102f9ccdfdfe3ae78c22f803da4db87cb91ba.tar.gz
minishell_test-820102f9ccdfdfe3ae78c22f803da4db87cb91ba.tar.bz2
minishell_test-820102f9ccdfdfe3ae78c22f803da4db87cb91ba.zip
Added test.test.Test tests
Diffstat (limited to 'minishell_test/hooks.py')
-rw-r--r--minishell_test/hooks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/minishell_test/hooks.py b/minishell_test/hooks.py
index 54963c9..0890565 100644
--- a/minishell_test/hooks.py
+++ b/minishell_test/hooks.py
@@ -6,7 +6,7 @@
# By: charles <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/09/11 16:10:20 by charles #+# #+# #
-# Updated: 2021/02/28 12:06:14 by cacharle ### ########.fr #
+# Updated: 2021/03/03 09:25:48 by cacharle ### ########.fr #
# #
# ############################################################################ #
@@ -27,7 +27,6 @@ def error_line0(output):
"""Replace "/bin/bash: -c: line n:" by "minishell:" and delete the second line"""
if not Config.check_error_messages:
return DISCARDED_TEXT
-
lines = output.split('\n')
if len(lines) != 3:
return output