diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 64296294b..f38fd9150 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "pypy-2.7", "pypy-3.7"] + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "pypy-2.7", "pypy-3.7", "pypy-3.8"] steps: - uses: actions/checkout@v2 diff --git a/changelog.d/892.change.rst b/changelog.d/892.change.rst new file mode 100644 index 000000000..aa2ebcbc9 --- /dev/null +++ b/changelog.d/892.change.rst @@ -0,0 +1 @@ +Fixed the test suite on PyPy3.8 where cloudpickle does not work. diff --git a/setup.py b/setup.py index ce0419f11..00e7b012a 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ "docs": ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"], "tests_no_zope": [ # For regression test to ensure cloudpickle compat doesn't break. - "cloudpickle", + 'cloudpickle; python_implementation == "CPython"', # 5.0 introduced toml; parallel was broken until 5.0.2 "coverage[toml]>=5.0.2", "hypothesis", diff --git a/tests/test_3rd_party.py b/tests/test_3rd_party.py index 1de6b335f..8866d7f6e 100644 --- a/tests/test_3rd_party.py +++ b/tests/test_3rd_party.py @@ -4,13 +4,16 @@ Tests for compatibility against other Python modules. """ -import cloudpickle +import pytest from hypothesis import given from .strategies import simple_classes +cloudpickle = pytest.importorskip("cloudpickle") + + class TestCloudpickleCompat(object): """ Tests for compatibility with ``cloudpickle``.