Skip to content

Commit

Permalink
Enable reporting of encoding warnings. (#578)
Browse files Browse the repository at this point in the history
* Enable reporting of encoding warnings.

* Add changelog

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
  • Loading branch information
3 people authored Apr 28, 2024
1 parent 90b75b4 commit f6083bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def pre_commit(session: nox.Session) -> None:
# Keep list in-sync with ci.yml/test-linux & pyproject.toml
@nox.session(python=["pypy3.8", "3.8", "3.9", "3.10", "3.11", "3.12"])
def tests(session: nox.Session) -> None:
session.env["PYTHONWARNDEFAULTENCODING"] = "1"
session.install("Twisted", "coverage[toml]")
posargs = list(session.posargs)

Expand Down
1 change: 1 addition & 0 deletions src/towncrier/newsfragments/561.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enable reporting of EncodingWarnings when running tests.

0 comments on commit f6083bb

Please sign in to comment.