Fix config file management in tests
This fixes some tests that tried to set options on python3.
Change-Id: Ib2cd36b318b4f8487045c5142fa3c200db61bc79
diff --git a/functional/test_reload_on_sighup.py b/functional/test_reload_on_sighup.py
index d646581..252cec8 100644
--- a/functional/test_reload_on_sighup.py
+++ b/functional/test_reload_on_sighup.py
@@ -49,7 +49,7 @@
while True:
config.read(self.config_file)
try:
- config.set(service, key, value)
+ config.set(service, key, str(value))
except configparser.NoSectionError:
if retries_count <= 0:
raise
@@ -58,7 +58,7 @@
else:
break
- with open(self.config_file, 'wb') as f:
+ with open(self.config_file, 'w') as f:
config.write(f)
def _get_config_value(self, service, key):