fix warnings in TestItemParsing::test_escape_separator due to an unclosed file

This commit is contained in:
Ahmed TAHRI
2024-03-20 07:37:12 +01:00
parent 793e3732af
commit 417adcd818

View File

@ -51,6 +51,9 @@ class TestItemParsing:
}
assert 'bar@baz' in items.files
# ensure we close the fixture file
items.multipart_data['bar@baz'][1].close()
@pytest.mark.parametrize('string, key, sep, value', [
('path=c:\\windows', 'path', '=', 'c:\\windows'),
('path=c:\\windows\\', 'path', '=', 'c:\\windows\\'),