Port Ruby test case to Python
This commit is contained in:
parent
77de1c473a
commit
ea53660a6b
@ -128,6 +128,17 @@ class TestForeign:
|
||||
for i in range(len(before_exif)):
|
||||
assert before_exif[i] == after_exif[i]
|
||||
|
||||
# https://github.com/libvips/libvips/issues/1847
|
||||
filename = temp_filename(self.tempdir, ".v")
|
||||
x = pyvips.Image.black(16, 16) + 128
|
||||
x.write_to_file(filename)
|
||||
|
||||
x = pyvips.Image.new_from_file(filename)
|
||||
assert x.width == 16
|
||||
assert x.height == 16
|
||||
assert x.bands == 1
|
||||
assert x.avg() == 128
|
||||
|
||||
x = None
|
||||
|
||||
@skip_if_no("jpegload")
|
||||
|
Loading…
Reference in New Issue
Block a user