Skip to content

Commit a2dd3c3

Browse files
committed
docs(CHANGES) Note bug fix
1 parent 9b955da commit a2dd3c3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGES

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ $ pip install --user --upgrade --pre libtmux
1515

1616
<!-- To maintainers and contributors: Please add notes for the forthcoming version above -->
1717

18+
### Bug fix
19+
20+
- `Server.new_session`: Fix handling of environmental variables passed to new
21+
sessions. Thank you @ppentchev! (#553)
22+
1823
## libtmux 0.40.0 (2024-12-20)
1924

2025
_Maintenance only, no bug fixes or new features_

tests/test_server.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,13 @@ def test_new_session_shell(server: Server) -> None:
134134

135135

136136
def test_new_session_shell_env(server: Server) -> None:
137-
"""Verify ``Server.new_session`` creates valid session running w/ command."""
137+
"""Verify ``Server.new_session`` creates valid session running w/ command (#553)."""
138138
cmd = "sleep 1m"
139139
env = dict(os.environ)
140140
mysession = server.new_session(
141-
"test_new_session_env", window_command=cmd, environment=env
141+
"test_new_session_env",
142+
window_command=cmd,
143+
environment=env,
142144
)
143145
time.sleep(0.1)
144146
window = mysession.windows[0]

0 commit comments

Comments
 (0)