summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-12-31 17:03:05 +0100
committerGitHub <noreply@github.com>2022-12-31 08:03:05 -0800
commit26e293f9b58031ec8a3b87c929bd0cdc2d4b5c7f (patch)
tree70d83192e8d615cc11e96011136d2d4baf9daf54 /tests
parentbfba43c4a8a3349f82651bfcfae64c40ae07a540 (diff)
downloadtox-git-26e293f9b58031ec8a3b87c929bd0cdc2d4b5c7f.tar.gz
Skip time-machine dep and spinner tests on PyPy (#2797)
The time-machine package is deeply relying on CPython implementation details and causes segfaults on PyPy. Pull the dependency in only on implementations other than PyPy, and skip collecting the spinner tests on PyPy since they require it.
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 81c4a493..b3086268 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -39,6 +39,12 @@ else: # pragma: no cover (<py38)
from typing_extensions import Protocol
+collect_ignore = []
+if sys.implementation.name == "pypy":
+ # time-machine causes segfaults on PyPy
+ collect_ignore.append("util/test_spinner.py")
+
+
class ToxIniCreator(Protocol):
def __call__(self, conf: str, override: Sequence[Override] | None = None) -> Config: # noqa: U100
...