File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ $ pip install --user --upgrade --pre libtmux
14
14
15
15
<!-- Maintainers and contributors: Insert change notes for the next release above -->
16
16
17
+ ### Tests
18
+
19
+ - Compatibility improvement for ` test_capture_pane ` and ` env ` (#452 ), credit:
20
+ @zappolowski !
21
+
17
22
## libtmux 0.15.9 (2022-10-30)
18
23
19
24
### Bug fix
Original file line number Diff line number Diff line change 1
1
"""Tests for libtmux Pane object."""
2
2
import logging
3
+ import shutil
3
4
4
5
from libtmux .session import Session
5
6
@@ -66,10 +67,13 @@ def test_set_width(session: Session) -> None:
66
67
67
68
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
+
69
73
session .new_window (
70
74
attach = True ,
71
75
window_name = "capture_pane" ,
72
- window_shell = ' env -i PS1="$ " /usr/bin/env bash --norc --noprofile' ,
76
+ window_shell = f" { env } PS1='$ ' bash --norc --noprofile" ,
73
77
)
74
78
pane = session .attached_window .attached_pane
75
79
assert pane is not None
You can’t perform that action at this time.
0 commit comments