diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 1beb5c0..bc4bf30 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -40,6 +40,8 @@ jobs: profile: minimal - name: Install pytest run: pip install pytest + - name: Install pyarrow + run: pip install pyarrow - name: Run build.py run: python -u tests/build.py - name: Run pytest diff --git a/tests/test_blake3.py b/tests/test_blake3.py index 0e04e6e..2d136be 100644 --- a/tests/test_blake3.py +++ b/tests/test_blake3.py @@ -91,6 +91,14 @@ def test_buffer_types(): assert incremental.digest() == blake3(b"foofoofoofoo").digest() +def test_arrow(): + import pyarrow as pa + ar = pa.array(['foo', 'bar']) + blake = blake3() + blake.update(memoryview(ar.buffers()[1])) + blake.update(memoryview(ar.buffers()[2])) + + def test_string_fails(): try: blake3("a string")