Skip to content

Commit

Permalink
skip gevent on Python 3.13 tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pajod committed May 20, 2024
1 parent b5f0708 commit a368611
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ testing = [
"coverage",
"pytest>=7.2.0",
# for workers
"gevent",
'gevent; python_version<"3.13"',
"eventlet",
"tornado>=6.0",
# for optional features
# "PasteDeploy>=1.0",
"inotify; sys_platform=='linux'",
'inotify; sys_platform=="linux"',
"setproctitle",
]
dev = [
Expand Down
13 changes: 11 additions & 2 deletions tests/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# from threading import Thread, Event


GRACEFUL_TIMEOUT = 8
BOOT_DEADLINE = 30
GRACEFUL_TIMEOUT = 10
BOOT_DEADLINE = 40

# test flaky for WORKER_COUNT != 1, awaiting *last* worker not implemented
WORKER_COUNT = 1
Expand Down Expand Up @@ -44,6 +44,15 @@
"gthread",
]

try:
from gevent import monkey as _gevent_is_installed
except ImportError:
for T in (TEST_TOLERATES_BAD_BOOT, TEST_TOLERATES_BAD_RELOAD):
T.remove("gevent")
T.append(
pytest.param("gevent", marks=pytest.mark.skip("gevent not installed")) # type: ignore[arg-type]
)


try:
from tornado import options as _tornado_is_installed
Expand Down

0 comments on commit a368611

Please sign in to comment.