Skip to content

Commit

Permalink
Fix test_csh when running with the original csh
Browse files Browse the repository at this point in the history
  • Loading branch information
kulikjak committed Sep 16, 2022
1 parent 445a68d commit ab8abac
Showing 1 changed file with 3 additions and 1 deletion.
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 ab8abac

Please sign in to comment.