[Python-checkins] gh-84461: Skip new async logging tests on Emscripten (GH-93427)
tiran
webhook-mailer at python.org
Thu Jun 2 03:35:34 EDT 2022
https://github.com/python/cpython/commit/af5bb1fba49c1f703890e28f69f0928109ecd815
commit: af5bb1fba49c1f703890e28f69f0928109ecd815
branch: main
author: Christian Heimes <christian at python.org>
committer: tiran <christian at python.org>
date: 2022-06-02T09:35:06+02:00
summary:
gh-84461: Skip new async logging tests on Emscripten (GH-93427)
files:
M Lib/test/test_logging.py
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 1c5e8523754ca..8af10d42981ce 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -4586,6 +4586,7 @@ async def _make_record_async(self, assertion):
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 @@ def test_taskName_with_asyncio_imported(self):
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 @@ def dummy_handle_error(record):
# 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')
More information about the Python-checkins
mailing list