Skip to content

Commit c2b852d

Browse files
committed
Fix fips test failures
1 parent c0be225 commit c2b852d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

relenv/runtime.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import site
2222
import subprocess
2323
import sys
24-
import tempfile
2524
import textwrap
2625
import warnings
2726

@@ -837,6 +836,11 @@ def install_cargo_config():
837836
if sys.platform != "linux":
838837
return
839838

839+
# We need this as a late import for python < 3.12 becuase importing it will
840+
# load the ssl module. Causing out setup_openssl method to fail to load
841+
# fips module.
842+
import tempfile
843+
840844
install_cargo_config.tmpdir = tempfile.TemporaryDirectory(prefix="relenvcargo")
841845
cargo_home = pathlib.Path(install_cargo_config.tmpdir.name)
842846

0 commit comments

Comments
 (0)