From b3e6a77402c44b37b07e5803169798d86a5a06ad Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 20 May 2022 15:56:10 -0700 Subject: [PATCH] Update "testclient.py" to work on Python 3 Signed-off-by: Tianon Gravi --- buildscripts/testclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/testclient.py b/buildscripts/testclient.py index 2071203b8..290d231be 100755 --- a/buildscripts/testclient.py +++ b/buildscripts/testclient.py @@ -294,7 +294,7 @@ def run(self): for test_func in (self.basic_repo_test, self.add_delegation_test, self.root_rotation_test): _, tempfile = mkstemp() with open(tempfile, 'wb') as handle: - handle.write(test_func.__name__ + "\n") + handle.write(bytes(str(test_func.__name__ + "\n").encode("utf-8"))) tempdir = mkdtemp(suffix="_temp")