mirror of
https://github.com/httpie/cli.git
synced 2025-08-14 03:38:28 +02:00
fix warnings in TestItemParsing::test_escape_separator due to an unclosed file
This commit is contained in:
@ -51,6 +51,9 @@ class TestItemParsing:
|
|||||||
}
|
}
|
||||||
assert 'bar@baz' in items.files
|
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', [
|
@pytest.mark.parametrize('string, key, sep, value', [
|
||||||
('path=c:\\windows', 'path', '=', 'c:\\windows'),
|
('path=c:\\windows', 'path', '=', 'c:\\windows'),
|
||||||
('path=c:\\windows\\', 'path', '=', 'c:\\windows\\'),
|
('path=c:\\windows\\', 'path', '=', 'c:\\windows\\'),
|
||||||
|
Reference in New Issue
Block a user