@@ -448,7 +448,11 @@ def setUp(self):
448448 self .frame1 = np .load (os .path .join (path , 'bulk-water_frame1.npy' ))
449449 self .klass = pims .ImageIOReader
450450 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 )
452456 self .expected_shape = (424 , 640 , 3 )
453457 self .expected_len = 480
454458
@@ -566,13 +570,15 @@ def setUp(self):
566570 _skip_if_no_PIL ()
567571
568572 def test_open_png (self ):
573+ _skip_if_no_imread ()
569574 self .filenames = ['dummy_png.png' ]
570575 shape = (10 , 11 )
571576 save_dummy_png (path , self .filenames , shape )
572577 pims .open (os .path .join (path , 'dummy_png.png' ))
573578 clean_dummy_png (path , self .filenames )
574579
575580 def test_open_pngs (self ):
581+ _skip_if_no_imread ()
576582 self .filepath = os .path .join (path , 'image_sequence' )
577583 self .filenames = ['T76S3F00001.png' , 'T76S3F00002.png' ,
578584 'T76S3F00003.png' , 'T76S3F00004.png' ,
0 commit comments