]> granicus.if.org Git - python/commitdiff
Merged revisions 88604 via svnmerge from
authorGiampaolo Rodolà <g.rodola@gmail.com>
Fri, 25 Feb 2011 20:07:25 +0000 (20:07 +0000)
committerGiampaolo Rodolà <g.rodola@gmail.com>
Fri, 25 Feb 2011 20:07:25 +0000 (20:07 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88604 | giampaolo.rodola | 2011-02-25 21:05:48 +0100 (ven, 25 feb 2011) | 1 line

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

Lib/test/test_asyncore.py

index 7b84ba2fb64c5ce65a026509f5b38d0d969a6b6d..53c49a803b467a68baa29601b6de180e637fb284 100644 (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):