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

chore: Add test for async foreign function #8

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

langenhagen
Copy link
Collaborator

@langenhagen langenhagen commented Feb 24, 2025

I pondered whether or and how to consolidate the foreign function tests best and decided that mixing the other foreign function assertions with the original test_run for a certain ... entropy and adding a new test for this async function is a good middle ground in order to keep the tests all bearably simple.

Ahja fwiw, ftr:

>>> import asyncio
>>> async def foo() -> int:
...     await asyncio.sleep(0.1)
...     return 42
...
>>> type(foo)
<class 'function'>
>>> def bar():
...     return 42
...
>>> type(bar)
<class 'function'>
>>> from typing import Callable
>>> isinstance(foo,Callable)
True
>>> isinstance(bar,Callable)
True
>>>

@langenhagen langenhagen changed the title chore:Add test for async foreign function chore: Add test for async foreign function Feb 24, 2025
@langenhagen langenhagen force-pushed the chore/add-test-for-async-foreign-function branch from 62ed916 to edbd547 Compare February 24, 2025 15:59
@langenhagen langenhagen merged commit 111fcd2 into main Feb 25, 2025
1 check passed
@langenhagen langenhagen deleted the chore/add-test-for-async-foreign-function branch February 25, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants