Merged revisions 71553 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71553 | r.david.murray | 2009-04-12 21:06:46 -0400 (Sun, 12 Apr 2009) | 3 lines

  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:22:04 +00:00
parent f64bce8ea7
commit 847f30e2bc
1 changed files with 1 additions and 4 deletions

View File

@ -273,10 +273,7 @@ def test_log_info(self):
sys.stdout = stdout sys.stdout = stdout
lines = fp.getvalue().splitlines() lines = fp.getvalue().splitlines()
if __debug__: expected = ['EGGS: %s' % l1, 'info: %s' % l2, 'SPAM: %s' % l3]
expected = ['EGGS: %s' % l1, 'info: %s' % l2, 'SPAM: %s' % l3]
else:
expected = ['EGGS: %s' % l1, 'SPAM: %s' % l3]
self.assertEquals(lines, expected) self.assertEquals(lines, expected)