Tests: Empty string should no longer cause an error during parsing
This commit is contained in:
parent
b5a53bac91
commit
6a585294e6
@ -73,9 +73,9 @@ def test_parse_real8():
|
|||||||
|
|
||||||
|
|
||||||
def test_parse_ascii():
|
def test_parse_ascii():
|
||||||
# empty data
|
# # empty data Now allowed!
|
||||||
with pytest.raises(KlamathError):
|
# with pytest.raises(KlamathError):
|
||||||
parse_ascii(b'')
|
# parse_ascii(b'')
|
||||||
|
|
||||||
assert(parse_ascii(b'12345') == b'12345')
|
assert(parse_ascii(b'12345') == b'12345')
|
||||||
assert(parse_ascii(b'12345\0') == b'12345') # strips trailing null byte
|
assert(parse_ascii(b'12345\0') == b'12345') # strips trailing null byte
|
||||||
|
Loading…
Reference in New Issue
Block a user