diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-05-02 13:43:00 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-05-02 13:43:00 (GMT) |
commit | 714b8dc501067d9ceccc8e07517b4d8a4b4465df (patch) | |
tree | dc4372efb2ae4ab73e85f10f5c6aa8a921a9c20a /Lib/test/test_logging.py | |
parent | 314b92b26e1c68c68cdcd9f50da48ea7d6c693aa (diff) | |
download | cpython-714b8dc501067d9ceccc8e07517b4d8a4b4465df.zip cpython-714b8dc501067d9ceccc8e07517b4d8a4b4465df.tar.gz cpython-714b8dc501067d9ceccc8e07517b4d8a4b4465df.tar.bz2 |
Improved thread interlocks in tests.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 96f8215..7a723e0 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1385,7 +1385,10 @@ class DatagramHandlerTest(BaseTest): logger = logging.getLogger("udp") logger.error("spam") self.handled.wait() - self.assertEqual(self.log_output, "spam\n") + self.handled.clear() + logger.error("eggs") + self.handled.wait() + self.assertEqual(self.log_output, "spam\neggs\n") @unittest.skipUnless(threading, 'Threading required for this test.') |