Skip to content

Commit ae2594c

Browse files
authored
Fix test_csh when running with the original csh (#2418)
1 parent cdf4225 commit ae2594c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/changelog/2418.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allow the test suite to pass even with the original C shell (rather than ``tcsh``) - by :user:`kulikjak`.

tests/unit/activation/test_csh.py

Lines changed: 3 additions & 1 deletion
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)