]> granicus.if.org Git - python/commitdiff
Adjust test_asyncore to account for intentional asyncore behavior change
authorR. David Murray <rdmurray@bitdance.com>
Mon, 13 Apr 2009 01:06:46 +0000 (01:06 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Mon, 13 Apr 2009 01:06:46 +0000 (01:06 +0000)
introduced by r70934 that was causing a test failure when run under -O.

Lib/test/test_asyncore.py

index e1ccb5a8529f96f51fbad9c5e1a52affc4d61337..ce835aa36c857eb114204714ad2b54e846669a95 100644 (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)