Skip to content

Commit

Permalink
Don't run "release" tests on PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed Jan 24, 2024
1 parent 1eeeb7f commit 67c9c20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cytoolz/tests/dev_skip_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- toolz is the correct version
- cytoolz is a release version
"""
import sys
import cytoolz

istest = lambda func: setattr(func, '__test__', True) or func
Expand All @@ -25,8 +26,9 @@
do_toolz_tests = toolz.__version__.startswith(cytoolz.__toolz_version__)
do_toolz_tests &= '+' not in cytoolz.__version__

# Decorator used to skip tests for developmental versions of CyToolz
if do_toolz_tests:
# Decorator used to skip tests for developmental versions of CyToolz.
# Also, skip these tests on PyPy, which may handle docs differently.
if do_toolz_tests and sys.implementation.name != "pypy":
dev_skip_test = istest
else:
dev_skip_test = nottest

0 comments on commit 67c9c20

Please sign in to comment.