make test text pass if text is missing
This commit is contained in:
parent
47a763209a
commit
279c1ef55f
@ -409,6 +409,8 @@ class TestCreate(unittest.TestCase):
|
||||
self.assertEqual(im.format, Vips.BandFormat.FLOAT)
|
||||
|
||||
def test_text(self):
|
||||
x = Vips.type_find("VipsOperation", "text")
|
||||
if x.is_instantiatable():
|
||||
im = Vips.Image.text("Hello, world!")
|
||||
self.assertTrue(im.width > 10)
|
||||
self.assertTrue(im.height > 10)
|
||||
|
Loading…
Reference in New Issue
Block a user