Skip to content

Commit 4d1f9c0

Browse files
committed
test(options): Avoid % format expansion in control mode test
why: tmux control mode interprets % as format expansion, causing "parse error: syntax error" when testing status-right with %H:%M. what: - Change test value from %H:%M to HH:MM for session_status_right - Add comment explaining control mode format expansion issue
1 parent 0786251 commit 4d1f9c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_options.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,12 @@ class OptionTestCase(t.NamedTuple):
927927
"session_status_left", "status-left", OptionScope.Session, "[#S]", str
928928
),
929929
OptionTestCase(
930-
"session_status_right", "status-right", OptionScope.Session, "%H:%M", str
930+
# Note: Using static value to avoid control mode % format expansion issue
931+
"session_status_right",
932+
"status-right",
933+
OptionScope.Session,
934+
"HH:MM",
935+
str,
931936
),
932937
]
933938

0 commit comments

Comments
 (0)