FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: skip hypothesis fuzzing on pypy · python-zeroconf/python-zeroconf@a17aaf1 · GitHub

Commit a17aaf1

Browse files
committed
test: skip hypothesis fuzzing on pypy
1 parent 02137cb commit a17aaf1

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎poetry.lock‎

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ setuptools = ">=83.0.0,<84.0.0"
9292
pytest-timeout = "^2.1.0"
9393
pytest-codspeed = ">=5.0.3,<6.0"
9494
blockbuster = ">=1.5.27,<2.0.0"
95-
hypothesis = "^6.165.10"
95+
hypothesis = {version = "^6.165.10", markers = "implementation_name == 'cpython'"}
9696

9797
[tool.poetry.group.docs.dependencies]
9898
sphinx = "^7.4.7 || ^8.1.3"

‎tests/conftest.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
import sys
56
import threading
67
from collections.abc import AsyncGenerator, Generator, Iterator
78
from unittest.mock import patch
@@ -15,6 +16,11 @@
1516
from zeroconf._services import info as service_info
1617
from zeroconf.asyncio import AsyncZeroconf
1718

19+
# hypothesis is not installed on PyPy (no wheels for its native module)
20+
collect_ignore: list[str] = []
21+
if sys.implementation.name != "cpython":
22+
collect_ignore.append("test_fuzz_incoming.py")
23+
1824
try:
1925
from blockbuster import BlockBuster, blockbuster_ctx
2026
except ImportError: # platforms without blockbuster (e.g. PyPy under QEMU)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL