diff --git a/tests/integration/local/invoke/test_integrations_cli.py b/tests/integration/local/invoke/test_integrations_cli.py index 70711459d6..be015469d0 100644 --- a/tests/integration/local/invoke/test_integrations_cli.py +++ b/tests/integration/local/invoke/test_integrations_cli.py @@ -306,7 +306,7 @@ def test_invoke_returns_utf8(self): process_stdout = stdout.strip() - with open(self.event_utf8_path) as f: + with open(self.event_utf8_path, encoding="utf8") as f: expected_output = json.dumps(json.load(f), ensure_ascii=False) self.assertEqual(process.returncode, 0)