From 6a585294e64a712678411e1d0166abe8471b345f Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 15 Dec 2021 18:24:28 -0800 Subject: [PATCH] Tests: Empty string should no longer cause an error during parsing --- klamath/test_basic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/klamath/test_basic.py b/klamath/test_basic.py index fd36e90..058c808 100644 --- a/klamath/test_basic.py +++ b/klamath/test_basic.py @@ -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