We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
env
1 parent 3c71322 commit 5783026Copy full SHA for 5783026
tests/test_pane.py
@@ -1,5 +1,6 @@
1
"""Tests for libtmux Pane object."""
2
import logging
3
+import shutil
4
5
from libtmux.session import Session
6
@@ -66,10 +67,13 @@ def test_set_width(session: Session) -> None:
66
67
68
69
def test_capture_pane(session: Session) -> None:
70
+ env = shutil.which("env")
71
+ assert env is not None, "Cannot find usable `env` in PATH."
72
+
73
session.new_window(
74
attach=True,
75
window_name="capture_pane",
- window_shell='env -i PS1="$ " /usr/bin/env bash --norc --noprofile',
76
+ window_shell=f"{env} PS1='$ ' bash --norc --noprofile",
77
)
78
pane = session.attached_window.attached_pane
79
assert pane is not None
0 commit comments