Kaydet (Commit) 7f49cf12 authored tarafından Tianon Gravi's avatar Tianon Gravi

Fix several DOCKER_HOST assumptions in integration_test.py

üst 7084802d
...@@ -1429,7 +1429,7 @@ class UnixconnTestCase(unittest.TestCase): ...@@ -1429,7 +1429,7 @@ class UnixconnTestCase(unittest.TestCase):
with warnings.catch_warnings(record=True) as w: with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always') warnings.simplefilter('always')
client = docker.Client() client = docker.Client(base_url=DEFAULT_BASE_URL)
client.images() client.images()
client.close() client.close()
del client del client
...@@ -1444,7 +1444,7 @@ class UnixconnTestCase(unittest.TestCase): ...@@ -1444,7 +1444,7 @@ class UnixconnTestCase(unittest.TestCase):
class TestRegressions(unittest.TestCase): class TestRegressions(unittest.TestCase):
def setUp(self): def setUp(self):
self.client = docker.client.Client(timeout=5) self.client = docker.Client(timeout=5, base_url=DEFAULT_BASE_URL)
def test_443(self): def test_443(self):
dfile = io.BytesIO() dfile = io.BytesIO()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment