Skip to content

Commit 88d1093

Browse files
committed
Filter out warnings caused by a bug in asyncio.
Those warnings make tests fail under PyPyy 3.9. Refs #1483.
1 parent 9ec785d commit 88d1093

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ env_list =
1212
mypy
1313

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

1820
[testenv:coverage]

0 commit comments

Comments
 (0)