]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-84461: Skip new async logging tests on Emscripten (GH-93427)
authorChristian Heimes <christian@python.org>
Thu, 2 Jun 2022 07:35:06 +0000 (09:35 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Jun 2022 07:35:06 +0000 (09:35 +0200)
Lib/test/test_logging.py

index 1c5e8523754cacc6f4fa99d615206118d9f63a5b..8af10d42981ce42cf8ff71cbb1c622fe30287757 100644 (file)
@@ -4586,6 +4586,7 @@ class LogRecordTest(BaseTest):
         r = logging.makeLogRecord({})
         assertion(r.taskName)
 
+    @support.requires_working_socket()
     def test_taskName_with_asyncio_imported(self):
         try:
             make_record = self._make_record_async
@@ -4597,6 +4598,7 @@ class LogRecordTest(BaseTest):
         finally:
             asyncio.set_event_loop_policy(None)
 
+    @support.requires_working_socket()
     def test_taskName_without_asyncio_imported(self):
         try:
             make_record = self._make_record_async
@@ -4886,6 +4888,7 @@ class BasicConfigTest(unittest.TestCase):
             # didn't write anything due to the encoding error
             self.assertEqual(data, r'')
 
+    @support.requires_working_socket()
     def test_log_taskName(self):
         async def log_record():
             logging.warning('hello world')