Skip to content

Commit

Permalink
docs(CHANGES) Note bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Dec 24, 2024
1 parent 9b955da commit a2dd3c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ $ pip install --user --upgrade --pre libtmux

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

### Bug fix

- `Server.new_session`: Fix handling of environmental variables passed to new
sessions. Thank you @ppentchev! (#553)

## libtmux 0.40.0 (2024-12-20)

_Maintenance only, no bug fixes or new features_
Expand Down
6 changes: 4 additions & 2 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,13 @@ def test_new_session_shell(server: Server) -> None:


def test_new_session_shell_env(server: Server) -> None:
"""Verify ``Server.new_session`` creates valid session running w/ command."""
"""Verify ``Server.new_session`` creates valid session running w/ command (#553)."""
cmd = "sleep 1m"
env = dict(os.environ)
mysession = server.new_session(
"test_new_session_env", window_command=cmd, environment=env
"test_new_session_env",
window_command=cmd,
environment=env,
)
time.sleep(0.1)
window = mysession.windows[0]
Expand Down

0 comments on commit a2dd3c3

Please sign in to comment.