Adjust test_asyncore to account for intentional asyncore behavior change

introduced by r70934 that was causing a test failure when run under -O.
This commit is contained in:
R. David Murray 2009-04-13 01:06:46 +00:00
parent 8c023248ed
commit dcad046d39
1 changed files with 1 additions and 4 deletions

View File

@ -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)