We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2910742 commit 8f19360Copy full SHA for 8f19360
.evergreen/scripts/setup_tests.py
@@ -1,6 +1,7 @@
1
from __future__ import annotations
2
3
import base64
4
+import io
5
import logging
6
import os
7
import platform
@@ -139,8 +140,9 @@ def setup_libmongocrypt():
139
140
LOGGER.info(f"Fetching {url}...")
141
with request.urlopen(request.Request(url), timeout=15.0) as response: # noqa: S310
142
if response.status == 200:
- with tarfile.open("libmongocrypt.tar.gz", fileobj=response) as fid:
143
- fid.extractall(HERE / "libmongocrypt")
+ fileobj = io.BytesIO(response.read())
144
+ with tarfile.open("libmongocrypt.tar.gz", fileobj=fileobj) as fid:
145
+ fid.extractall(Path.cwd() / "libmongocrypt")
146
LOGGER.info(f"Fetching {url}... done.")
147
148
run_command("ls -la libmongocrypt")
0 commit comments