Skip to content

Commit e9324f5

Browse files
committed
test add_file_from_memory with NUL in data
closes #69
1 parent e21fd93 commit e9324f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_rwx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ def test_write_not_fail(write_fail_mock):
122122
'archfmt,data_bytes',
123123
[('zip', b'content'),
124124
('gnutar', b''),
125-
('pax', json.dumps({'a': 1, 'b': 2, 'c': 3}).encode())])
125+
('pax', json.dumps({'a': 1, 'b': 2, 'c': 3}).encode()),
126+
('7zip', b'lorem\0ipsum')])
126127
def test_adding_entry_from_memory(archfmt, data_bytes):
127128
entry_path = 'testfile.data'
128-
129129
entry_data = data_bytes
130130
entry_size = len(data_bytes)
131131

0 commit comments

Comments
 (0)