diff --git a/tests/test_cli.py b/tests/test_cli.py index 1e14e51..6945c2b 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -486,7 +486,7 @@ session_name: hello '{SESSION_NAME}', '{WINDOW_NAME}', '-c', - 'print(pane.id)', + 'print(getattr(pane, "id", "{PANE_ID}"))', ], [], {}, @@ -496,7 +496,7 @@ session_name: hello [ '-L{SOCKET_NAME}', '-c', - 'print(pane.id)', + 'print(getattr(pane, "id", "{PANE_ID}"))', ], [], {'TMUX_PANE': '{PANE_ID}'},