diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2022-10-25 07:00:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 22:00:20 -0700 |
commit | ae2594c5a822f62964f2ccef7832c26306bc66b1 (patch) | |
tree | 443a9e3d46b829ea86eff96b42ab5973d873b2c4 | |
parent | cdf4225c689150010af8da1cc913e8f32bee06d2 (diff) | |
download | virtualenv-ae2594c5a822f62964f2ccef7832c26306bc66b1.tar.gz |
Fix test_csh when running with the original csh (#2418)
-rw-r--r-- | docs/changelog/2418.bugfix.rst | 1 | ||||
-rw-r--r-- | tests/unit/activation/test_csh.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/changelog/2418.bugfix.rst b/docs/changelog/2418.bugfix.rst new file mode 100644 index 0000000..d13c4a2 --- /dev/null +++ b/docs/changelog/2418.bugfix.rst @@ -0,0 +1 @@ +Allow the test suite to pass even with the original C shell (rather than ``tcsh``) - by :user:`kulikjak`. diff --git a/tests/unit/activation/test_csh.py b/tests/unit/activation/test_csh.py index f9539c5..afdb08f 100644 --- a/tests/unit/activation/test_csh.py +++ b/tests/unit/activation/test_csh.py @@ -7,6 +7,8 @@ def test_csh(activation_tester_class, activation_tester): 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) |