From 234507483cc8b515c4ca3830c836f01136e9314e Mon Sep 17 00:00:00 2001 From: Scott Davidson Date: Fri, 13 Sep 2024 14:11:57 +0000 Subject: [PATCH] Minor fixes to test scripts --- scripts/parallel-client.py | 6 ++++-- scripts/requirements.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/parallel-client.py b/scripts/parallel-client.py index 5394cc2..6d5b5de 100644 --- a/scripts/parallel-client.py +++ b/scripts/parallel-client.py @@ -27,7 +27,6 @@ import requests import numpy as np import ssl -import sys import time import urllib3 @@ -265,7 +264,10 @@ async def run_async_httpx(args): def main(): - urllib3.disable_warnings(urllib3.exceptions.SubjectAltNameWarning) + try: + urllib3.disable_warnings(urllib3.exceptions.SubjectAltNameWarning) + except: + pass args = get_args() start = time.time() num_errors = 0 diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 7b421ce..4d5f977 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -2,3 +2,4 @@ numcodecs numpy requests s3fs +httpx