File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def download_images(url, download_path):
2323 return output
2424def extract_images (path , destination ):
2525 print ("Extracting images" )
26- with tarfile .open (os . path . join ( path , "sample_images.tar.gz" ) , "r:gz" ) as archive_file :
26+ with tarfile .open (path , "r:gz" ) as archive_file :
2727 for item in archive_file .getmembers ():
2828 print ("Extracting {}" .format (item .name ))
2929 archive_file .extract (item , path = destination )
@@ -52,7 +52,7 @@ def sample_images_readonly(tmpdir_factory):
5252 download_path = download_path
5353 )
5454 verify_hash (archive , sha256_hash = SAMPLE_IMAGES_SHA256 )
55- extract_images (path = download_path , destination = test_path )
55+ extract_images (path = archive , destination = test_path )
5656 yield sample_images_path
5757 if os .path .exists (test_path ):
5858 shutil .rmtree (test_path )
You can’t perform that action at this time.
0 commit comments