Issue #5661: on EPIPE/ECONNRESET, OS X returns the FD with the POLLPRI flag...
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py
index 7bb594d..dccdfed 100644
--- a/Lib/test/test_asyncore.py
+++ b/Lib/test/test_asyncore.py
@@ -647,6 +647,10 @@
                 self.flag = True
                 self.close()
 
+            def handle_expt(self):
+                self.flag = True
+                self.close()
+
         class TestHandler(BaseTestHandler):
 
             def handle_read(self):