@@ -448,7 +448,11 @@ def setUp(self):
448
448
self .frame1 = np .load (os .path .join (path , 'bulk-water_frame1.npy' ))
449
449
self .klass = pims .ImageIOReader
450
450
self .kwargs = dict ()
451
- self .v = self .klass (self .filename , ** self .kwargs )
451
+ try :
452
+ self .v = self .klass (self .filename , ** self .kwargs )
453
+ except imageio .core .fetching .NeedDownloadError :
454
+ imageio .plugins .ffmpeg .download ()
455
+ self .v = self .klass (self .filename , ** self .kwargs )
452
456
self .expected_shape = (424 , 640 , 3 )
453
457
self .expected_len = 480
454
458
@@ -566,13 +570,15 @@ def setUp(self):
566
570
_skip_if_no_PIL ()
567
571
568
572
def test_open_png (self ):
573
+ _skip_if_no_imread ()
569
574
self .filenames = ['dummy_png.png' ]
570
575
shape = (10 , 11 )
571
576
save_dummy_png (path , self .filenames , shape )
572
577
pims .open (os .path .join (path , 'dummy_png.png' ))
573
578
clean_dummy_png (path , self .filenames )
574
579
575
580
def test_open_pngs (self ):
581
+ _skip_if_no_imread ()
576
582
self .filepath = os .path .join (path , 'image_sequence' )
577
583
self .filenames = ['T76S3F00001.png' , 'T76S3F00002.png' ,
578
584
'T76S3F00003.png' , 'T76S3F00004.png' ,
0 commit comments