Update tests/test_string_utils.py
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 38s
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 38s
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user