Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip a test on GitHub Actions #65

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/utils/test_thread_task_id.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import asyncio
from asyncio import to_thread
from functools import partial
from os import getenv

import pytest
from pytest import mark

from nextline.types import TaskNo, ThreadNo, ThreadTaskId
from nextline.utils import ExcThread
Expand Down Expand Up @@ -154,6 +156,7 @@ def test_async_asyncio_run(obj: IdComposer):
asyncio.run(async_assert_call(obj, expected))


@mark.skipif(getenv('GITHUB_ACTIONS') == 'true', reason='Fails on GitHub Actions')
async def test_async_asyncio_to_thread(obj: IdComposer):
expected = ThreadTaskId(ThreadNo(1), TaskNo(1))
assert_call(obj, expected)
Expand Down