Skip to content

Commit 6c057ac

Browse files
committed
fix: update property test for gitignore-compatible whitespace handling
1 parent 5c7d0bc commit 6c057ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_text_file_not_detected_as_binary(data):
5555
@settings(max_examples=100)
5656
def test_ignore_patterns_roundtrip(patterns):
5757
with tempfile.TemporaryDirectory() as tmp_dir:
58-
valid = [p.strip() for p in patterns if p.strip() and not p.strip().startswith("#")]
58+
valid = [p.rstrip() for p in patterns if p.strip() and not p.startswith("#")]
5959
f = Path(tmp_dir) / ".gitignore"
6060
f.write_text("\n".join(patterns), encoding="utf-8")
6161
result = read_ignore_file(f)

0 commit comments

Comments
 (0)