From 86ceade7b3891c5708663927aeb02f970d76d739 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 22 Feb 2023 23:31:32 +0100 Subject: [PATCH] tests: Skip encrypt_string test when building without OpenSSL --- tests/express/test_encrypt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/express/test_encrypt.py b/tests/express/test_encrypt.py index bb49d46599..8a0d2628d5 100644 --- a/tests/express/test_encrypt.py +++ b/tests/express/test_encrypt.py @@ -1,6 +1,9 @@ from panda3d import core +import pytest + +@pytest.mark.skipif(not hasattr(core, 'encrypt_string'), reason="Requires OpenSSL") def test_encrypt_string(): # Test encrypt and then decrypt cycle for algorithm in ('', 'bf-cbc', 'aes-256-cbc'):