Skip to content

Commit

Permalink
tests: Modernize uvloop tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Jun 16, 2023
1 parent 66bd6f6 commit e08418d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
; py3.7 runs into aiocoap unrelated trouble in setups on Debian sid, leaving
; this to `setup.py test` for now
;
; For uvloop not being tested with pyp3, see
; https://github.com/chrysn/aiocoap/issues/193.
envlist = {py37,py38,py39,py310,py311,py312,pypy3}-{noextras,allextras},py38-uvloop
; uvloop is only tested on one recent version; it is not tested on pypy
; because pypy support for uvloop is currently broken
; <https://github.com/MagicStack/uvloop/issues/521>
envlist = {py37,py38,py39,py310,py311,py312,pypy3}-{noextras,allextras},py311-uvloop
skip_missing_interpreters = true

[testenv]
Expand Down Expand Up @@ -33,16 +34,18 @@ extras =
setenv =
AIOCOAP_DEFAULTS_EXPECT_ALL=1

[testenv:{py38,pypy3}-uvloop]
[testenv:py311-uvloop]
description = Running on uvloop
deps =
coverage
pytest
uvloop
extras =
all
; client-/server-transport could just as well be done on the default main loop,
; client-/server-transport substitute the default udp6 with the non-udp6
; alternative. that test could just as well be done on the default main loop,
; but AFAIR uvloop required occasional workarounds
setenv =
AIOCOAP_TESTS_LOOP=uvloop
AIOCOAP_CLIENT_TRANSPORT=oscore:simple6
AIOCOAP_SERVER_TRANSPORT=oscore:simplesocketserver
AIOCOAP_CLIENT_TRANSPORT=oscore:tinydtls:tcpclient:tlsclient:ws:simple6
AIOCOAP_SERVER_TRANSPORT=oscore:tinydtls_server:tinydtls:tcpserver:tcpclient:tlsserver:tlsclient:ws:simplesocketserver

0 comments on commit e08418d

Please sign in to comment.