We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c7d0bc commit 6c057acCopy full SHA for 6c057ac
tests/test_properties.py
@@ -55,7 +55,7 @@ def test_text_file_not_detected_as_binary(data):
55
@settings(max_examples=100)
56
def test_ignore_patterns_roundtrip(patterns):
57
with tempfile.TemporaryDirectory() as tmp_dir:
58
- valid = [p.strip() for p in patterns if p.strip() and not p.strip().startswith("#")]
+ valid = [p.rstrip() for p in patterns if p.strip() and not p.startswith("#")]
59
f = Path(tmp_dir) / ".gitignore"
60
f.write_text("\n".join(patterns), encoding="utf-8")
61
result = read_ignore_file(f)
0 commit comments