Skip to content

Commit

Permalink
Fixed runtime provider asyncio test
Browse files Browse the repository at this point in the history
  • Loading branch information
danyi1212 committed Feb 6, 2025
1 parent f6750e5 commit e0b647c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/runtime_provider_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import asyncio
import os
import sys
import threading

import pytest

from dans_log_formatter.formatter import JsonLogFormatter
from dans_log_formatter.providers.runtime import RuntimeProvider
from tests.utils import logger_factory, read_stream_log_line
Expand Down Expand Up @@ -31,6 +34,7 @@ def test_runtime_provider_in_thread():
assert record["thread"] == f"MyThread ({thread.ident})"


@pytest.mark.skipif(sys.version_info < (3, 12), reason="requires python3.12 or higher")
def test_runtime_provider_in_task():
logger, stream = logger_factory(JsonLogFormatter([RuntimeProvider()]))

Expand Down

0 comments on commit e0b647c

Please sign in to comment.