File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -431,6 +431,7 @@ def test_truncated_header(trunc):
431
431
with pytest .raises (EOFError ):
432
432
igzip .decompress (trunc )
433
433
434
+
434
435
def test_very_long_header_in_data ():
435
436
# header with a very long filename.
436
437
header = (b"\x1f \x8b \x08 \x08 \x00 \x00 \x00 \x00 \x00 \xff " + 256 * 1024 * b"A" +
@@ -449,7 +450,8 @@ def test_very_long_header_in_file():
449
450
with pytest .raises (OverflowError ) as error :
450
451
with igzip .open (f , "rb" ) as gzip_file :
451
452
gzip_file .read ()
452
- error .match (f"header does not fit into buffer of size { igzip .READ_BUFFER_SIZE } " )
453
+ error .match (
454
+ f"header does not fit into buffer of size { igzip .READ_BUFFER_SIZE } " )
453
455
454
456
455
457
def test_concatenated_gzip ():
@@ -472,7 +474,7 @@ def test_seek():
472
474
# Start testing forward seek
473
475
gzip_file .seek (500 )
474
476
assert gzip_file .read (1 ) == b"A"
475
- gzip_file .seek (1500 )# Any positive number should end up at the end
477
+ gzip_file .seek (1500 )
476
478
assert gzip_file .read (1 ) == b"B"
477
479
# Test reverse
478
480
gzip_file .seek (500 )
You can’t perform that action at this time.
0 commit comments