aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2022-07-04 09:53:03 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2022-07-04 10:11:11 +0200
commit45dd321c6dd44f72d2982a9665a2ea88436bacec (patch)
tree7626514af11e20ade4a3fb6c669e819513f40784
parent216682a4311beb324639e3e01d807fc52942bae8 (diff)
downloadgeldschieberbot-45dd321c6dd44f72d2982a9665a2ea88436bacec.tar.gz
geldschieberbot-45dd321c6dd44f72d2982a9665a2ea88436bacec.zip
fixup! test: add explicit encoding to open
-rwxr-xr-xtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index 0354407..9126b1b 100755
--- a/test.py
+++ b/test.py
@@ -98,7 +98,7 @@ def reset_state_string(string):
def compare_state(comp_state):
with open(comp_state, "r", encoding='utf-8') as csf, \
- open(os.environ["GSB_STATE_FILE", encoding='utf-8'], "r") as sf:
+ open(os.environ["GSB_STATE_FILE"], "r", encoding='utf-8') as sf:
cs = csf.read()
s = sf.read()
return cs == s