File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -409,13 +409,15 @@ def test_sines(self):
409
409
self .assertEqual (im .format , Vips .BandFormat .FLOAT )
410
410
411
411
def test_text (self ):
412
- im = Vips .Image .text ("Hello, world!" )
413
- self .assertTrue (im .width > 10 )
414
- self .assertTrue (im .height > 10 )
415
- self .assertEqual (im .bands , 1 )
416
- self .assertEqual (im .format , Vips .BandFormat .UCHAR )
417
- self .assertEqual (im .max (), 255 )
418
- self .assertEqual (im .min (), 0 )
412
+ x = Vips .type_find ("VipsOperation" , "text" )
413
+ if x .is_instantiatable ():
414
+ im = Vips .Image .text ("Hello, world!" )
415
+ self .assertTrue (im .width > 10 )
416
+ self .assertTrue (im .height > 10 )
417
+ self .assertEqual (im .bands , 1 )
418
+ self .assertEqual (im .format , Vips .BandFormat .UCHAR )
419
+ self .assertEqual (im .max (), 255 )
420
+ self .assertEqual (im .min (), 0 )
419
421
420
422
def test_tonelut (self ):
421
423
im = Vips .Image .tonelut ()
You can’t perform that action at this time.
0 commit comments