From aaee15331bc40a2480a939d481c4750475e2c8aa Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Thu, 18 Jun 2026 21:28:16 +0200 Subject: [PATCH] refactor(testing): open the fixture output file via Path.open output_file is a Path; use its open method for consistency with the rest of the plugin. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/testing/src/consensus_testing/pytest_plugins/filler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/testing/src/consensus_testing/pytest_plugins/filler.py b/packages/testing/src/consensus_testing/pytest_plugins/filler.py index aa44339b2..4953b59e8 100644 --- a/packages/testing/src/consensus_testing/pytest_plugins/filler.py +++ b/packages/testing/src/consensus_testing/pytest_plugins/filler.py @@ -97,7 +97,7 @@ def write_fixtures(self) -> None: test_id = f"{test_nodeid}[fork_{self.fork}-{fixture_format}]" all_tests[test_id] = fixture.json_dict_with_info() - with open(output_file, "w") as output_handle: + with output_file.open("w") as output_handle: json.dump(all_tests, output_handle, indent=4)