From 56b7ec70b8eede3f0b865af11bb0d9f04237f5e0 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Tue, 20 Sep 2022 17:12:52 +0100 Subject: [PATCH] Change write mode --- tests/snapshot_tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/snapshot_tests/conftest.py b/tests/snapshot_tests/conftest.py index 92871e0bc..76cf997a0 100644 --- a/tests/snapshot_tests/conftest.py +++ b/tests/snapshot_tests/conftest.py @@ -120,7 +120,7 @@ def pytest_sessionfinish( num_snapshot_tests=num_snapshot_tests, now=datetime.utcnow(), ) - with open(snapshot_report_path, "wt") as snapshot_file: + with open(snapshot_report_path, "w+") as snapshot_file: snapshot_file.write(rendered_report) session.config._textual_snapshots = diffs