Commits

Vinay Sajip committed 78e7992

test_logging: minor tweaks to timeouts, listening tests marked as skipped.

  • Participants
  • Parent commits e9dbbcd
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/test/test_logging.py

         t.start()
         try:
             sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+            sock.settimeout(2.0)
             sock.connect(('localhost', port))
 
             slen = struct.pack('>L', len(text))
             sock.close()
         finally:
             logging.config.stopListening()
-            t.join()
+            t.join(2.0)
 
-    def notest_listen_config_10_ok(self):
+    @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))
             logger = logging.getLogger("compiler.parser")
                 ('ERROR', '4'),
             ], stream=output)
 
-    def notest_listen_config_1_ok(self):
+    @unittest.skip("See issue #7857")
+    def test_listen_config_1_ok(self):
         with captured_stdout() as output:
             self.setup_via_listener(textwrap.dedent(ConfigFileTest.config1))
             logger = logging.getLogger("compiler.parser")