mirror of https://github.com/python/cpython
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:
parent
8c023248ed
commit
dcad046d39
|
@ -272,10 +272,7 @@ class DispatcherTests(unittest.TestCase):
|
||||||
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue