From: R. David Murray Date: Mon, 13 Apr 2009 01:06:46 +0000 (+0000) Subject: Adjust test_asyncore to account for intentional asyncore behavior change X-Git-Tag: v2.7a1~1484 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcad046d39e4e879e80e8026224bd2b70585b630;p=thirdparty%2FPython%2Fcpython.git Adjust test_asyncore to account for intentional asyncore behavior change introduced by r70934 that was causing a test failure when run under -O. --- diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py index e1ccb5a8529f..ce835aa36c85 100644 --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py @@ -272,10 +272,7 @@ class DispatcherTests(unittest.TestCase): sys.stdout = stdout lines = fp.getvalue().splitlines() - if __debug__: - expected = ['EGGS: %s' % l1, 'info: %s' % l2, 'SPAM: %s' % l3] - else: - expected = ['EGGS: %s' % l1, 'SPAM: %s' % l3] + expected = ['EGGS: %s' % l1, 'info: %s' % l2, 'SPAM: %s' % l3] self.assertEquals(lines, expected)