Repository: tmux-python/libtmux (language: python)

Issue:
Remove BASH-isms from tests
re: https://github.com/tmux-python/libtmux/pull/452#discussion_r1014638444, https://github.com/tmux-python/tmuxp/pull/844


Discussion / hints:

Fix patch:
diff --git a/CHANGES b/CHANGES
index 9aa68ecb6..536d0b194 100644
--- a/CHANGES
+++ b/CHANGES
@@ -16,8 +16,12 @@ $ pip install --user --upgrade --pre libtmux
 
 ### Tests
 
+_There will be more tests over the coming weeks and months to shore up
+flakiness across shells and environments._
+
 - Compatibility improvement for `test_capture_pane` and `env` (#452), credit:
   @zappolowski!
+- Remove more BASHisms from tests (#455)
 
 ## libtmux 0.15.9 (2022-10-30)
 
diff --git a/src/libtmux/common.py b/src/libtmux/common.py
index 5376f8ef3..430053963 100644
--- a/src/libtmux/common.py
+++ b/src/libtmux/common.py
@@ -219,7 +219,7 @@ class tmux_cmd:
 
     Equivalent to:
 
-    .. code-block:: bash
+    .. code-block:: console
 
         $ tmux new-session -s my session
 


Test patch:
diff --git a/tests/test_pane.py b/tests/test_pane.py
index 58def41f5..c9c658f6e 100644
--- a/tests/test_pane.py
+++ b/tests/test_pane.py
@@ -73,7 +73,7 @@ def test_capture_pane(session: Session) -> None:
     session.new_window(
         attach=True,
         window_name="capture_pane",
-        window_shell=f"{env} PS1='$ ' bash --norc --noprofile",
+        window_shell=f"{env} PS1='$ ' sh",
     )
     pane = session.attached_window.attached_pane
     assert pane is not None