Skip to content

Commit

Permalink
Merge pull request #65 from simonsobs/dev
Browse files Browse the repository at this point in the history
Skip a test on GitHub Actions
  • Loading branch information
TaiSakuma authored Jul 1, 2024
2 parents 90dc941 + 95a5eea commit be0740c
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit be0740c

Please sign in to comment.