From 45dd321c6dd44f72d2982a9665a2ea88436bacec Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 4 Jul 2022 09:53:03 +0200 Subject: fixup! test: add explicit encoding to open --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3