diff --git a/src/pgpro_pytest_html_merger/__main__.py b/src/pgpro_pytest_html_merger/__main__.py index 3845497..e146eac 100644 --- a/src/pgpro_pytest_html_merger/__main__.py +++ b/src/pgpro_pytest_html_merger/__main__.py @@ -600,7 +600,7 @@ def _process_test(self, test: typing.Dict[str, typing.Any]) -> None: def process_report(self, report_path): self._report_count += 1 - with open(report_path, "r") as f: + with open(report_path, "r", encoding="utf-8") as f: soup = bs4.BeautifulSoup(f, features="html.parser") assert isinstance(soup, bs4.BeautifulSoup)