diff --git a/.github/workflows/build-native-action.yml b/.github/workflows/build-native-action.yml index 5fb2c6dc..24500a57 100644 --- a/.github/workflows/build-native-action.yml +++ b/.github/workflows/build-native-action.yml @@ -246,6 +246,10 @@ jobs: run: | python -m relenv build --no-pretty --arch=${{ matrix.arch }} --python=${{ matrix.version }} + - name: Check openssl binary + run: | + mv $(which openssl) /tmp/openssl + - name: Verify Build if: ${{ matrix.arch == 'amd64' }} run: | diff --git a/tests/test_verify_build.py b/tests/test_verify_build.py index 47bbed12..41133521 100644 --- a/tests/test_verify_build.py +++ b/tests/test_verify_build.py @@ -1676,3 +1676,12 @@ def test_no_openssl_binary(rockycontainer, pipexec): errors = proc.stderr.decode() assert "legacy provider failed to load" not in errors + + +def test_import_ssl_module(pyexec): + proc = subprocess.run( + [pyexec, "-c", "import ssl"], capture_output=True, check=False + ) + assert proc.returncode == 0 + assert proc.stdout.decode() == "" + assert proc.stderr.decode() == ""