summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/applications/tls.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/applications/tls.py b/test/unit/applications/tls.py
index 93400328..63f0c9c4 100644
--- a/test/unit/applications/tls.py
+++ b/test/unit/applications/tls.py
@@ -52,7 +52,9 @@ class TestApplicationTLS(TestApplicationProto):
def post_ssl(self, **kwargs):
return self.post(wrapper=self.context.wrap_socket, **kwargs)
- def openssl_conf(self, rewrite=False, alt_names=[]):
+ def openssl_conf(self, rewrite=False, alt_names=None):
+ alt_names = alt_names or []
+
conf_path = option.temp_dir + '/openssl.conf'
if not rewrite and os.path.exists(conf_path):