aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.py b/test.py
index b7a18c8..0354407 100755
--- a/test.py
+++ b/test.py
@@ -92,13 +92,13 @@ def reset_state(state=None):
def reset_state_string(string):
- with open(os.environ["GSB_STATE_FILE"], "w") as f:
+ with open(os.environ["GSB_STATE_FILE"], "w", encoding='utf-8') as f:
json.dump(json.loads(string), f)
def compare_state(comp_state):
- with open(comp_state, "r") as csf, \
- open(os.environ["GSB_STATE_FILE"], "r") as sf:
+ with open(comp_state, "r", encoding='utf-8') as csf, \
+ open(os.environ["GSB_STATE_FILE", encoding='utf-8'], "r") as sf:
cs = csf.read()
s = sf.read()
return cs == s