Tests: Empty string should no longer cause an error during parsing

This commit is contained in:
Jan Petykiewicz 2021-12-15 18:24:28 -08:00
parent b5a53bac91
commit 6a585294e6

View File

@ -73,9 +73,9 @@ def test_parse_real8():
def test_parse_ascii():
# empty data
with pytest.raises(KlamathError):
parse_ascii(b'')
# # empty data Now allowed!
# with pytest.raises(KlamathError):
# parse_ascii(b'')
assert(parse_ascii(b'12345') == b'12345')
assert(parse_ascii(b'12345\0') == b'12345') # strips trailing null byte