- don't skimp on names
This commit is contained in:
parent
00bf3269bd
commit
494d8876eb
@ -260,16 +260,16 @@ class TestForeign:
|
||||
|
||||
# higher Q should mean a bigger buffer
|
||||
q10 = im.jpegsave_buffer(Q=10)
|
||||
q10o = im.jpegsave_buffer(Q=10, subsample_mode=2)
|
||||
q10_subsample_off = im.jpegsave_buffer(Q=10, subsample_mode=2)
|
||||
q90 = im.jpegsave_buffer(Q=90)
|
||||
assert len(q90) > len(q10)
|
||||
assert len(q10o) > len(q10)
|
||||
assert len(q10_subsample_off) > len(q10)
|
||||
|
||||
# force subsampling should result in smaller buffer
|
||||
q90s = im.jpegsave_buffer(Q=90, subsample_mode=1)
|
||||
q90a = im.jpegsave_buffer(Q=90, subsample_mode=0)
|
||||
assert len(q90) > len(q90s)
|
||||
assert len(q90) == len(q90a)
|
||||
q90_subsample_on = im.jpegsave_buffer(Q=90, subsample_mode=1)
|
||||
q90_subsample_auto = im.jpegsave_buffer(Q=90, subsample_mode=0)
|
||||
assert len(q90) > len(q90_subsample_on)
|
||||
assert len(q90) == len(q90_subsample_auto)
|
||||
|
||||
@skip_if_no("jpegload")
|
||||
def test_truncated(self):
|
||||
|
Loading…
Reference in New Issue
Block a user