From 90107820e0bcd5890b7f77411c09208c5189be64 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 2 Oct 2021 21:31:34 +0100 Subject: [PATCH] Fix file open mode (py3) --- src/mod_sso/test/httpd_integration_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_sso/test/httpd_integration_test.py b/src/mod_sso/test/httpd_integration_test.py index 9331650..b6ba6b1 100755 --- a/src/mod_sso/test/httpd_integration_test.py +++ b/src/mod_sso/test/httpd_integration_test.py @@ -30,7 +30,7 @@ devnull = open(os.devnull) def _start_httpd(public_key, config_file): - with open('public.key', 'w') as fd: + with open('public.key', 'wb') as fd: fd.write(public_key) env = dict(os.environ) env['TESTROOT'] = os.getcwd() -- GitLab