File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 4
4
"""
5
5
6
6
import pytest
7
- import docker
8
7
import io
9
8
10
9
from labgrid import Environment
@@ -161,6 +160,7 @@ def test_docker_with_daemon(command):
161
160
162
161
@pytest .fixture
163
162
def build_image ():
163
+ import docker
164
164
client = docker .from_env ()
165
165
dockerfile_content = """
166
166
FROM rastasheep/ubuntu-sshd:16.04
@@ -198,6 +198,7 @@ def test_docker_without_daemon(docker_env, mocker):
198
198
DockerManager and DockerStrategy without using an actual
199
199
docker daemon, real sockets or system time"""
200
200
201
+ import docker
201
202
# Target::update_resources() and Target::await_resources use
202
203
# time.monotonic() and time.sleep() to control when to search
203
204
# for resources. Avoid time delays and make running from cmd-line
You can’t perform that action at this time.
0 commit comments