andrea
andrea
Hello, I've been playing around with asyncio and used aiomysql for database access, I noticed that coroutines cannot create cursors from a shared connection (like the title of this issue...
Sorry but I cannot find anything that says that, the only thing is this section in [the DB API](https://www.python.org/dev/peps/pep-0249/#cursor-objects), but it does not mention that only one cursor per connection...
Except for libraries with [threadsafety](https://www.python.org/dev/peps/pep-0249/#threadsafety) 2 or 3 I guess? (I'm talking about threads here) But I guess threadsafety does not apply to asyncio Edit: I see now that PyMSQL...
OK I see, thanks
See [this](https://github.com/magento/magento2-sample-data/issues/12) Issue (and solution)
I found a workaround by creating things by hand instead of using get_host() ```python rootfs = "/the/rootfs/" backend = testinfra.backend.chroot.ChrootBackend(rootfs) self.host = testinfra.host.Host(backend) ```