Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/unit/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,13 @@ class FromContextTest(unittest.TestCase):

def setUp(self):
self.os_environ = os.environ.copy()
# Make sure DOCKER_HOST does not short-circuit the context path
# Make sure DOCKER_HOST does not short-circuit the context path,
# and that ambient DOCKER_TLS_VERIFY/DOCKER_CERT_PATH from the host
# running the tests don't leak into kwargs_from_env.
os.environ.pop('DOCKER_HOST', None)
os.environ.pop('DOCKER_CONTEXT', None)
os.environ.pop('DOCKER_CERT_PATH', None)
os.environ.pop('DOCKER_TLS_VERIFY', None)

def tearDown(self):
os.environ.clear()
Expand Down