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):