Skip to content

Commit

Permalink
Add SSL cert installation to resultset
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-rliu committed Dec 10, 2024
1 parent bfcf422 commit f3d896a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/cugraph/cugraph/testing/resultset.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@

import warnings
import tarfile

import urllib.request

import cudf
from cugraph.datasets.dataset import (
DefaultDownloadDir,
default_download_dir,
)

# results_dir_path = utils.RAPIDS_DATASET_ROOT_DIR_PATH / "tests" / "resultsets"
from cugraph.utilities import install_ssl_cert


class Resultset:
Expand Down Expand Up @@ -107,6 +105,7 @@ def load_resultset(resultset_name, resultset_download_url):
if not curr_resultset_download_dir.exists():
curr_resultset_download_dir.mkdir(parents=True, exist_ok=True)
if not compressed_file_path.exists():
install_ssl_cert()
urllib.request.urlretrieve(resultset_download_url, compressed_file_path)
tar = tarfile.open(str(compressed_file_path), "r:gz")
# TODO: pass filter="fully_trusted" when minimum supported Python version >=3.12
Expand Down

0 comments on commit f3d896a

Please sign in to comment.