We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcee32c commit 7ca9ddeCopy full SHA for 7ca9dde
tests/test_window.py
@@ -1,5 +1,6 @@
1
"""Test for libtmux Window object."""
2
import logging
3
+import shutil
4
import time
5
import typing as t
6
@@ -314,9 +315,12 @@ def test_empty_window_name(session: Session) -> None:
314
315
316
317
def test_split_window_with_environment(session: Session) -> None:
318
+ env = shutil.which("env")
319
+ assert env is not None, "Cannot find usable `env` in Path."
320
+
321
window = session.new_window(window_name="split_window_with_environment")
322
pane = window.split_window(
- shell="/usr/bin/env PS1='$ ' bash --norc --noprofile",
323
+ shell=f"{env} PS1='$ ' bash --norc --noprofile",
324
environment={"ENV_VAR": "pane"},
325
)
326
assert pane is not None
0 commit comments