Skip to content

Commit

Permalink
Merge pull request #154 from hamarituc/cms
Browse files Browse the repository at this point in the history
fix test case for OpenSSL 3
  • Loading branch information
m32 authored Oct 22, 2023
2 parents d2bb289 c826882 commit bffa73d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 86,9 @@ def test_email_signed_attr_pss(self):
process = Popen(cmd, stdout=PIPE, stderr=PIPE)
stdout, stderr = process.communicate()

assert stderr == b'Verification successful\n'
# OpenSSL <= 1.1.1 outputs 'Verification successful'
# OpenSSL >= 3.0.0 outputs 'CMS Verification successful'
assert stderr == b'Verification successful\n' or stderr == b'CMS Verification successful\n'
assert datau.replace(b'\n', b'\r\n') == stdout

def test_email_signed_attr_custom(self):
Expand Down

0 comments on commit bffa73d

Please sign in to comment.