Skip to content

Commit c5bc0a9

Browse files
committed
fix: pytest file utf encoding
1 parent c7e5d4e commit c5bc0a9

File tree

1 file changed

+1
-1
lines changed
  • template/{% if is_distributable %}tests{% endif %}

1 file changed

+1
-1
lines changed

template/{% if is_distributable %}tests{% endif %}/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def update_readme_coverage_badge():
4343
replacement_str = f"![Code Coverage]({badge_url})"
4444

4545
# Use regex to replace badge icon in README
46-
with open(README_FILE, "r+") as f:
46+
with open(README_FILE, "r+", encoding='utf-8') as f:
4747
text = f.read()
4848
if replacement_str in text:
4949
logging.info('Coverage in README is up to date -- no changes made.')

0 commit comments

Comments
 (0)