diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-04-13 01:06:46 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-04-13 01:06:46 (GMT) |
commit | dcad046d39e4e879e80e8026224bd2b70585b630 (patch) | |
tree | 27722fb2d9c5a493249d482822f018c381dfa108 /Lib | |
parent | 8c023248ed089bf6ed9cc26ad3b4925f8de6dd76 (diff) | |
download | cpython-dcad046d39e4e879e80e8026224bd2b70585b630.zip cpython-dcad046d39e4e879e80e8026224bd2b70585b630.tar.gz cpython-dcad046d39e4e879e80e8026224bd2b70585b630.tar.bz2 |
Adjust test_asyncore to account for intentional asyncore behavior change
introduced by r70934 that was causing a test failure when run under -O.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_asyncore.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py index e1ccb5a..ce835aa 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) |