Skip to content

Commit

Permalink
tests: check for default encoding issues (#474)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Aug 20, 2024
1 parent c5576ac commit 718ae2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-rr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Test package
run: python -m pytest -ra
env:
PYTHONUTF8: "1"
PYTHONWARNDEFAULTENCODING: 1

action:
name: Action
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def rr_tests(session: nox.Session) -> None:
Run the unit and regular tests for sp-repo-review.
"""
session.install("-e.[test,cli]")
session.run("pytest", *session.posargs)
session.run("pytest", *session.posargs, env={"PYTHONWARNDEFAULTENCODING": "1"})


@nox.session(reuse_venv=True)
Expand Down

0 comments on commit 718ae2c

Please sign in to comment.