ci: don't test gevent on pypy (#3830)
This commit is contained in:
parent
fbfeb2ff03
commit
e308c8d3ac
|
@ -20,7 +20,7 @@ classifiers = [
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
dev = [
|
dev = [
|
||||||
"gevent>=22.10.2",
|
"gevent>=22.10.2; implementation_name == 'cpython'",
|
||||||
"hypothesis>=3.55",
|
"hypothesis>=3.55",
|
||||||
"pytest-asyncio>=0.21",
|
"pytest-asyncio>=0.21",
|
||||||
"pytest-benchmark>=3.4",
|
"pytest-benchmark>=3.4",
|
||||||
|
|
|
@ -2,7 +2,6 @@ import importlib
|
||||||
import platform
|
import platform
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import gevent
|
|
||||||
import pyo3_pytests.misc
|
import pyo3_pytests.misc
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
@ -83,6 +82,8 @@ class ArbitraryClass:
|
||||||
|
|
||||||
|
|
||||||
def test_gevent():
|
def test_gevent():
|
||||||
|
gevent = pytest.importorskip("gevent")
|
||||||
|
|
||||||
def worker(worker_id: int) -> None:
|
def worker(worker_id: int) -> None:
|
||||||
for iteration in range(2):
|
for iteration in range(2):
|
||||||
d = {"key": ArbitraryClass(worker_id, iteration)}
|
d = {"key": ArbitraryClass(worker_id, iteration)}
|
||||||
|
|
Loading…
Reference in New Issue