(issue 11214) - fix asyncore.strerror test failure on AIX

This commit is contained in:
Giampaolo Rodolà 2011-02-25 20:05:48 +00:00
parent 46134645aa
commit d2751fb482
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ class DispatcherTests(unittest.TestCase):
if hasattr(os, 'strerror'):
self.assertEqual(err, os.strerror(errno.EPERM))
err = asyncore._strerror(-1)
self.assertIn("unknown error", err.lower())
self.assertTrue(err != "")
class dispatcherwithsend_noread(asyncore.dispatcher_with_send):