Update tests/test_string_utils.py
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 38s

This commit is contained in:
2025-07-14 13:43:05 +02:00
parent 39f5cf0bd9
commit d37cf4bf5b
+2 -1
View File
@@ -22,11 +22,12 @@ def test_warning_emit():
# Emits a Python UserWarning, checks warning capture
warnings.warn("Test warning", UserWarning)
'''
def test_unicode_encode_error():
# UnicodeEncodeError due to decoding malformed surrogate byte
with pytest.raises(UnicodeEncodeError):
b'\udc80'.decode('utf-8')
'''
def test_unicode_decode_error():
# UnicodeDecodeError when decoding invalid byte sequence
with pytest.raises(UnicodeDecodeError):