python fixes, tests

This commit is contained in:
Ethan Buchman
2015-12-14 18:00:18 -05:00
parent bb4a58aa0a
commit af2a1a6fc1
8 changed files with 103 additions and 51 deletions

View File

@ -77,9 +77,9 @@ class TMSPServer():
ret_code = res
res = None
print "called", req_type, "ret code:", ret_code
if ret_code != 0:
print "non-zero retcode:", ret_code
return
if req_type in ("echo", "info"): # these dont return a ret code
response += bytearray([resTypeByte]) + encode(res)