Skip to content

Commit

Permalink
Save reports as UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansandberg committed Jul 22, 2021
1 parent 9794848 commit b00a2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_reporter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def pytest_reporter_save(self, config):
# Save content to file
target = Path(path)
target.parent.mkdir(parents=True, exist_ok=True)
target.write_text(content)
target.write_text(content, "utf-8")
config.hook.pytest_reporter_finish(
path=target, context=self.context, config=config
)
Expand Down

0 comments on commit b00a2ac

Please sign in to comment.