Make test_asyncore tests match code changes introduced by the fix to Issue1161031, refactoring the test to simplify it in the process.
Make test_asyncore tests match code changes introduced by the
fix to Issue1161031, refactoring the test to simplify it in
the process.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator