-
Notifications
You must be signed in to change notification settings - Fork 392
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
Add support for docker-py / using VCR.py with docker-py makes tests hang indefinitely with 100% CPU load #519
Comments
exactly same issue here |
I'm confirming the issue, Python 3.8, docker-py 1.10.6, vcrpy 4.2.1. import docker
import vcr
@vcr.use_cassette()
def test_docker_images():
env = docker.from_env()
images = env.images()
assert images Running Docker daemon is needed of course. In a fresh venv I did: # pip install pytest docker-py vcrpy 'urllib3<2' "Hanging" is actually one core spinning at 100% CPU, apparently forever. |
As indicated by @gravelBridge through #692 the issue is an infinite loop at… Lines 237 to 238 in 14cef83
…where the instance is of type
|
Here's my example test file:
The test works fine, but if I'll uncomment the
@vcr.use_cassette()
, it will hang forever.Environment (Ubuntu, python 3.7):
The examples from the documentation are working fine.
Edit: tested on Windows, and the same example works as expected, the test runs and cassette is created.
The text was updated successfully, but these errors were encountered: