Skip to content

Commit 25e9444

Browse files
committed
Test also empty string
1 parent e7ca52f commit 25e9444

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_capi/test_unicode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,6 +1779,7 @@ def test_utf8(self):
17791779
def test_ascii(self):
17801780
writer = self.create_writer(0)
17811781
writer.write_ascii(b"Hello ", -1)
1782+
writer.write_ascii(b"", 0)
17821783
writer.write_ascii(b"Python! <truncated>", 6)
17831784
self.assertEqual(writer.finish(), "Hello Python")
17841785

0 commit comments

Comments
 (0)