From 135da3a1c4facb0117fd5d4ef4aebc81a8a1696d Mon Sep 17 00:00:00 2001 From: Jacob Fuss <32497805+jfuss@users.noreply.github.com> Date: Wed, 2 Aug 2023 13:02:48 -0500 Subject: [PATCH] fix(test): Force reading file with utf8 in tests for windows (#5679) Co-authored-by: Jacob Fuss --- tests/integration/local/invoke/test_integrations_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)