Skip to content

Commit

Permalink
Skip cloudpickle tests that fail for various versions/reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianeboyd committed Jul 18, 2023
1 parent b10f42a commit 05c7704
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions srsly/tests/cloudpickle/cloudpickle_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,10 @@ def test_builtin_classicmethod(self):


@pytest.mark.skipif(
platform.machine() == "aarch64" and sys.version_info[:2] >= (3, 10),
reason="Fails on aarch64 + python 3.10+ in cibuildwheel, currently unable to replicate failure elsewhere")
(platform.machine() == "aarch64" and sys.version_info[:2] >= (3, 10))
or platform.python_implementation() == "PyPy"
or (sys.version_info[:2] == (3, 10) and sys.version_info >= (3, 10, 8)),
reason="Fails on aarch64 + python 3.10+ in cibuildwheel, currently unable to replicate failure elsewhere; fails sometimes for pypy on conda-forge; fails for python 3.10.8")
def test_builtin_classmethod(self):
obj = 1.5 # float object

Expand Down Expand Up @@ -1470,6 +1472,7 @@ def foo():
finally:
sys.modules.pop("_faulty_module", None)

@pytest.mark.skip(reason="fails for pytest v7.2.0")
def test_dynamic_pytest_module(self):
# Test case for pull request https://github.com/cloudpipe/cloudpickle/pull/116
import py
Expand Down Expand Up @@ -1567,6 +1570,8 @@ def test_namedtuple(self):
assert isinstance(depickled_t2, MyTuple)
assert depickled_t2 == t2

@pytest.mark.skipif(platform.python_implementation() == "PyPy",
reason="fails sometimes for pypy on conda-forge")
def test_interactively_defined_function(self):
# Check that callables defined in the __main__ module of a Python
# script (or jupyter kernel) can be pickled / unpickled / executed.
Expand Down

0 comments on commit 05c7704

Please sign in to comment.