]> granicus.if.org Git - python/commitdiff
Issue #7857: Another attempt to keep the buildbots happy.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 8 Feb 2010 16:05:50 +0000 (16:05 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 8 Feb 2010 16:05:50 +0000 (16:05 +0000)
Lib/test/test_logging.py

index 1d3bd1aefaf1324865b413a2a0954f9954d7a22b..77db96a2fc4f5e9057d9da9cdc844a8ce9b498de 100644 (file)
@@ -1574,6 +1574,7 @@ class ConfigDictTest(BaseTest):
         t = logging.config.listen(port)
         t.start()
         t.ready.wait()
+        t.ready.clear()
         try:
             sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
             sock.settimeout(2.0)
@@ -1589,10 +1590,11 @@ class ConfigDictTest(BaseTest):
                 left -= sent
             sock.close()
         finally:
+            t.ready.wait(2.0)
             logging.config.stopListening()
             t.join(2.0)
 
-    @unittest.skip("See issue #7857")
+    #@unittest.skip("See issue #7857")
     def test_listen_config_10_ok(self):
         with captured_stdout() as output:
             self.setup_via_listener(json.dumps(self.config10))