Comments (10)
from tokio.
With tokio
loop I am getting bunch of errors RuntimeError: Timeout context manager should be used inside a task
when using loop.run_until_complete(coro)
as result tests does not have a chance to start since such idiom ofter used in test fixtures. (asyncio and uvloop works as expected)
@pytest.fixture
def bucket_name(region, create_bucket, s3_client, loop):
> name = loop.run_until_complete(create_bucket(region))
E RuntimeError: Timeout context manager should be used inside a task
from tokio.
from tokio.
Does tokio create its own rust Tasks? Why not Futures instead?
from tokio.
@jettify aiomonitor passes tests with aiohttp master
from tokio.
- https://github.com/aio-libs/aioredis - tests pass. some xfail tests pass as well, which is not good
from tokio.
I will merge those PRs soon, so tokio/uvloop can be tested on each PR continuously.
from tokio.
@jettify I think we need separate package for various asyncio related fixtures.
every library that test different event loops implements loop
fixture
from tokio.
@fafhrd91 agreed there are few libraries, but not sure I like them (https://pypi.python.org/pypi/pytest-asyncio)
from tokio.
But we have enough fixters in aiohttp and other aio libs, we just need to extract those to separate package
from tokio.
Related Issues (20)
- Replace loop.current_task() with officially supported API HOT 4
- Arcaive tokio repo HOT 1
- Add copyright headers to tests HOT 7
- Decide on the license HOT 2
- add UDS support HOT 1
- make "host" parameter option for "crate_connection" method HOT 1
- add native PIPES api
- add native SUBPROCESS api
- provide sockname and peername for uds
- do we need python3.5 support? HOT 4
- Could not catch socket HUP event
- New python binding implementation HOT 1
- documentation error: TokioLoopPolicy not EventLoopPolicy HOT 14
- It would be interesting to see some benchmarking on this one. HOT 1
- tokio object can not set python attr HOT 4
- asyncio.Task.current_task() returns None HOT 3
- loop.add_signal_handler(signal.SIGINT, foo) is not intercepting KeyboardInterrupt as in asyncio and uvloop HOT 3
- building issues HOT 7
- Better documentation for rust-python interop HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tokio.