Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add PyPy to the test matrix #2927

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jobs:
python-architecture: x64
runs-on: ubuntu-latest
dependencies-kind: minimal
- python-version: 'pypy3.9'
python-architecture: x64
runs-on: ubuntu-latest
dependencies-kind: pypy
jpivarski marked this conversation as resolved.
Show resolved Hide resolved

runs-on: ${{ matrix.runs-on }}

Expand Down
3 changes: 3 additions & 0 deletions requirements-test-pypy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pytest>=6
pytest-cov
pytest-xdist
4 changes: 3 additions & 1 deletion tests/test_2757_attrs_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def test_serialise_with_transient_attrs(array_pickler):
def test_serialise_with_nonserialisable_attrs(array_pickler):
attrs = {**SOME_ATTRS, "non_transient_key": lambda: None}
array = ak.Array([1, 2, 3], attrs=attrs)
with pytest.raises(AttributeError, match=r"Can't pickle local object"):
with pytest.raises(
(AttributeError, array_pickler.PicklingError), match=r"Can't pickle"
):
array_pickler.loads(array_pickler.dumps(array))


Expand Down