Skip to content

Commit

Permalink
Filter out warnings caused by a bug in asyncio.
Browse files Browse the repository at this point in the history
Those warnings make tests fail under PyPyy 3.9.

Refs #1483.
  • Loading branch information
aaugustin committed Aug 11, 2024
1 parent 9ec785d commit 88d1093
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ env_list =
mypy

[testenv]
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m unittest {posargs}
; Filter out ResourceWarnings to work around https://github.com/python/cpython/issues/90476.
; This can be removed when dropping Python < 3.11.
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -W ignore:"unclosed transport":ResourceWarning:asyncio.sslproto -m unittest {posargs}
pass_env = WEBSOCKETS_*

[testenv:coverage]
Expand Down

0 comments on commit 88d1093

Please sign in to comment.