Skip to content

Commit 190adce

Browse files
committed
Fix test_csh when running with the original csh
1 parent 445a68d commit 190adce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/activation/test_csh.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ def __init__(self, session):
77
super().__init__(CShellActivator, session, "csh", "activate.csh", "csh")
88

99
def print_prompt(self):
10-
return "echo 'source \"$VIRTUAL_ENV/bin/activate.csh\"; echo $prompt' | csh -i"
10+
# Original csh doesn't print the last newline,
11+
# breaking the test; hence the trailing echo.
12+
return "echo 'source \"$VIRTUAL_ENV/bin/activate.csh\"; echo $prompt' | csh -i ; echo"
1113

1214
activation_tester(Csh)

0 commit comments

Comments
 (0)