diff options
author | Christian Heimes <christian@python.org> | 2022-06-02 07:35:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 07:35:06 (GMT) |
commit | af5bb1fba49c1f703890e28f69f0928109ecd815 (patch) | |
tree | 88eed1aa5c6557688716d72e78a036a06a495e1d /Lib | |
parent | ee70c70aa93d7a41cbe47a0b361b17f9d7ec8acd (diff) | |
download | cpython-af5bb1fba49c1f703890e28f69f0928109ecd815.zip cpython-af5bb1fba49c1f703890e28f69f0928109ecd815.tar.gz cpython-af5bb1fba49c1f703890e28f69f0928109ecd815.tar.bz2 |
gh-84461: Skip new async logging tests on Emscripten (GH-93427)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_logging.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 1c5e852..8af10d4 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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') |