From e653fa9e3a652f80bfe54c165bbfa4518524f456 Mon Sep 17 00:00:00 2001 From: Sadra Barikbin Date: Fri, 21 Jul 2023 18:29:33 +0330 Subject: [PATCH] Fix a tiny bug in a test --- testing/python/fixtures.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/python/fixtures.py b/testing/python/fixtures.py index f880f36b2..8fa5a4303 100644 --- a/testing/python/fixtures.py +++ b/testing/python/fixtures.py @@ -4544,7 +4544,7 @@ def test_basing_fixture_argkeys_on_param_values_rather_than_on_param_indices( pytester: Pytester, ): package = pytester.mkdir("package") - package.joinpath("__init__.py").write_text("") + package.joinpath("__init__.py").write_text("", encoding="utf-8") package.joinpath("test_a.py").write_text( textwrap.dedent( f"""\ @@ -4574,6 +4574,7 @@ def test_basing_fixture_argkeys_on_param_values_rather_than_on_param_indices( pass """ ), + encoding="utf-8", ) result = pytester.runpytest("--collect-only") result.stdout.re_match_lines(