Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2751fb

Browse files
committed
(issue 11214) - fix asyncore.strerror test failure on AIX
1 parent 4613464 commit d2751fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_asyncore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def test_strerror(self):
329329
if hasattr(os, 'strerror'):
330330
self.assertEqual(err, os.strerror(errno.EPERM))
331331
err = asyncore._strerror(-1)
332-
self.assertIn("unknown error", err.lower())
332+
self.assertTrue(err != "")
333333

334334

335335
class dispatcherwithsend_noread(asyncore.dispatcher_with_send):

0 commit comments

Comments
 (0)