Browse Source

tests: Skip encrypt_string test when building without OpenSSL

rdb 2 years ago
parent
commit
86ceade7b3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/express/test_encrypt.py

+ 3 - 0
tests/express/test_encrypt.py

@@ -1,6 +1,9 @@
 from panda3d import core
 from panda3d import core
 
 
+import pytest
 
 
+
[email protected](not hasattr(core, 'encrypt_string'), reason="Requires OpenSSL")
 def test_encrypt_string():
 def test_encrypt_string():
     # Test encrypt and then decrypt cycle
     # Test encrypt and then decrypt cycle
     for algorithm in ('', 'bf-cbc', 'aes-256-cbc'):
     for algorithm in ('', 'bf-cbc', 'aes-256-cbc'):