- don't skimp on names

This commit is contained in:
elad laufer 2020-02-17 17:15:43 +02:00
parent 00bf3269bd
commit 494d8876eb

View File

@ -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):