You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2007-11-03.18:30:55.672>created_at=<Date2007-11-03.18:06:42.804>labels= ['tests', 'type-bug', 'library']
title='fix for test_asynchat and test_asyncore on pep3137 branch'updated_at=<Date2008-01-06.22:29:45.430>user='https://bugs.python.org/hupp'
The attached patch resolves test failues in test_asynchat and
test_asyncore.
The asynchat failure was due to interpolating a byte string into a
unicode string using %s. This resulted in a b'' byte representation
in the final string. The fix is to use string constants instead of
byte constants. The result is encoded to bytes later on.
The asyncore failure was due to an explicit isinstance(data, bytes)
check on the result of recv. The actual type in this case was buffer.
I've removed the check since the next line calls
data.replace(b'\n', b'')
This all should fail for anything thats not a buffer or bytes.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: