summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub KulĂ­k <Kulikjak@gmail.com>2022-10-25 07:00:20 +0200
committerGitHub <noreply@github.com>2022-10-24 22:00:20 -0700
commitae2594c5a822f62964f2ccef7832c26306bc66b1 (patch)
tree443a9e3d46b829ea86eff96b42ab5973d873b2c4
parentcdf4225c689150010af8da1cc913e8f32bee06d2 (diff)
downloadvirtualenv-ae2594c5a822f62964f2ccef7832c26306bc66b1.tar.gz
Fix test_csh when running with the original csh (#2418)
-rw-r--r--docs/changelog/2418.bugfix.rst1
-rw-r--r--tests/unit/activation/test_csh.py4
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)