From 89012b4dd85fabe1799cce7a465a819445c2cf1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Tue, 3 Dec 2019 10:45:40 +0100 Subject: [PATCH] fix 'str' does not support the buffer interface --- x-pack/functionbeat/tests/system/test_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/functionbeat/tests/system/test_base.py b/x-pack/functionbeat/tests/system/test_base.py index 1154fb1baf4..03f1bc42b40 100644 --- a/x-pack/functionbeat/tests/system/test_base.py +++ b/x-pack/functionbeat/tests/system/test_base.py @@ -105,7 +105,7 @@ def _generate_dummy_binary_for_template_checksum(self): for fb in bins_to_gen: if os.path.exists(fb): continue - with open(fb, "wb") as f: + with open(fb, "w") as f: f.write("my dummy functionbeat binary\n") def _get_generated_function_template(self):