Skip to content

Commit 45f9683

Browse files
committed
Fix CI: update tests/test_pqc_serialization_extended.py
1 parent 82169f7 commit 45f9683

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test_pqc_serialization_extended.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import base64
2-
import binascii
32

43
import pytest
54

@@ -52,7 +51,7 @@ def test_base64_roundtrip_for_multiple_inputs(data):
5251
def test_base64_to_bytes_raises_for_invalid_base64():
5352
invalid_base64 = "not-valid-base64@@@"
5453

55-
with pytest.raises(binascii.Error):
54+
with pytest.raises(ValueError, match="Invalid Base64 data"):
5655
base64_to_bytes(invalid_base64)
5756

5857

0 commit comments

Comments
 (0)