Skip to content

Commit f96daec

Browse files
committed
isolate pycrypto/dome-explict test and explicitly use pycrypto/dome backend
1 parent 267f5ce commit f96daec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/algorithms/test_RSA.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,9 @@ def test_pycrypto_RSA_key_instance():
345345
@pytest.mark.pycrypto
346346
@pytest.mark.pycryptodome
347347
@pytest.mark.parametrize("private_key", PRIVATE_KEYS)
348+
@pytest.mark.skipif(None in (PyCryptoRSA, PyCryptoRSAKey), reason="Pycrypto/dome backend not available")
348349
def test_pycrypto_unencoded_cleartext(private_key):
349-
key = RSAKey(private_key, ALGORITHMS.RS256)
350+
key = PyCryptoRSAKey(private_key, ALGORITHMS.RS256)
350351
msg = b'test'
351352
signature = key.sign(msg)
352353
public_key = key.public_key()

0 commit comments

Comments
 (0)