Separate test of write and read so we can test threading

This commit is contained in:
Kovid Goyal
2023-11-05 11:22:39 +05:30
parent 34164dc341
commit afcffc03b1
3 changed files with 33 additions and 22 deletions

View File

@@ -37,7 +37,7 @@ class TestParser(BaseTest):
if isinstance(x, str):
x = x.encode('utf-8')
cmds = tuple(('draw', x) if isinstance(x, str) else tuple(map(cnv, x)) for x in cmds)
s.test_write_data(x, cd)
parse_bytes(s, x, cd)
current = ''
q = []
for args in cd: