1818try :
1919 import urllib .parse
2020 import urllib .request
21- except Exception as exc_ :
21+ except Exception as exc_ : # pragma: no cover
2222 raise RuntimeError (f"Impossible to find library urllib. Please install it, error was:\n { exc_ } ." )
2323
2424URL_GRID2OP_DATA = "https://github.com/Tezirg/Grid2Op/releases/download/{}/{}"
4444_MAX_COMPRESSION_RATIO = 100 # reject archives that expand more than 100×
4545
4646
47- class DownloadProgressBar (tqdm ):
47+ class DownloadProgressBar (tqdm ): # pragma: no cover
4848 """
4949 INTERNAL
5050
@@ -59,7 +59,7 @@ def update_to(self, b=1, bsize=1, tsize=None):
5959 self .update (b * bsize - self .n )
6060
6161
62- def download_url (url , output_path ):
62+ def download_url (url , output_path ): # pragma: no cover
6363 """
6464 INTERNAL
6565
@@ -87,7 +87,7 @@ def download_url(url, output_path):
8787 urllib .request .urlretrieve (url , filename = output_path , reporthook = t .update_to )
8888
8989
90- def _aux_download (url , dataset_name , path_data , ds_name_dl = None ):
90+ def _aux_download (url , dataset_name , path_data , ds_name_dl = None ): # pragma: no cover
9191 """
9292 INTERNAL
9393
@@ -180,7 +180,7 @@ def _aux_download(url, dataset_name, path_data, ds_name_dl=None):
180180 )
181181
182182
183- def main_download (dataset_name , path_data ):
183+ def main_download (dataset_name , path_data ): # pragma: no cover
184184 """
185185 INTERNAL
186186
0 commit comments