Skip to content

Commit

Permalink
Fix test_csh when running with the original csh (#2418)
Browse files Browse the repository at this point in the history
  • Loading branch information
kulikjak authored Oct 25, 2022
1 parent cdf4225 commit ae2594c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/2418.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow the test suite to pass even with the original C shell (rather than ``tcsh``) - by :user:`kulikjak`.
4 changes: 3 additions & 1 deletion tests/unit/activation/test_csh.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ def __init__(self, session):
super().__init__(CShellActivator, session, "csh", "activate.csh", "csh")

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

activation_tester(Csh)

0 comments on commit ae2594c

Please sign in to comment.