Skip to content

Commit 88150d6

Browse files
tsurutanmenclaude
andcommitted
test(git): match the escaped name git actually prints
The constant used Python octal escapes, so it held 13 characters git never emits and the four not-in assertions passed even before the fix. As a raw string it is the 40-character token git writes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent e067aed commit 88150d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/git/tests/test_server.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def test_git_diff(test_repository):
187187
assert "feature changes" in result
188188

189189
NON_ASCII_FILENAME = "日本語.txt"
190-
ESCAPED_NON_ASCII_FILENAME = "\346\227\245\346\234\254\350\252\236.txt"
190+
ESCAPED_NON_ASCII_FILENAME = r"\346\227\245\346\234\254\350\252\236.txt"
191191

192192
@pytest.fixture
193193
def quotepath_repository(test_repository):

0 commit comments

Comments
 (0)