Commit cf0d717b authored by Xiaowu Zhang's avatar Xiaowu Zhang

test_registry_client: use map method to do the samething

parent dd0baed8
...@@ -90,8 +90,7 @@ class TestRegistryClientInteract(unittest.TestCase): ...@@ -90,8 +90,7 @@ class TestRegistryClientInteract(unittest.TestCase):
fp.seek(0) fp.seek(0)
return fp return fp
fps = [write_to_temp(text) for text in [ca, key, cert]] ca, key, cert = map(write_to_temp, (ca, key, cert))
ca, key, cert = fps
client.cert = x509.Cert(ca.name, key.name, cert.name) client.cert = x509.Cert(ca.name, key.name, cert.name)
ca.close() ca.close()
cert.close() cert.close()
......
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