AlenkaF commented on PR #49279: URL: https://github.com/apache/arrow/pull/49279#issuecomment-4046489559
> IIUC docstest checks this, right? Correct. Though you do not see `tensor.pxi` listed in the doctest ouput, you would see the error under `lib.pyx` (if there would be any error), here: https://github.com/apache/arrow/actions/runs/21994415489/job/63550273073?pr=49279#step:6:6853. For example (local test): ```python $ python -m pytest --doctest-cython python/pyarrow/lib.pyx ===================================== test session starts ===================================== platform darwin -- Python 3.14.3, pytest-9.0.2, pluggy-1.6.0 rootdir: /Users/alenkafrim/Repos/arrow/python configfile: setup.cfg plugins: hypothesis-6.151.6, cython-0.4.0 collected 306 items python/pyarrow/lib.pyx .........F...................................................... [ 20%] ....................................................................................... [ 49%] .....................................................F................................. [ 77%] .................................................................... [100%] ========================================== FAILURES =========================================== _____________________________ [doctest] pyarrow.lib.ChunkedArray ______________________________ EXAMPLE LOCATION UNKNOWN, not showing all tests of that example ??? >>> pa.chunked_array([[2, 2, 4], [4, 5, 100]]) Differences (unified diff with -expected +actual): @@ -1,6 +1,6 @@ -<pyarrow.lib.ChunkedArray object at ...> +<pyarrow.lib.ChunkedArray object at 0x113d84f40> [ [ - 0, + 2, 2, 4 /Users/alenkafrim/Repos/arrow/python/pyarrow/lib.cpython-314-darwin.so:None: DocTestFailure ________________________________ [doctest] pyarrow.lib.Tensor _________________________________ EXAMPLE LOCATION UNKNOWN, not showing all tests of that example ??? >>> pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"]) Differences (unified diff with -expected +actual): @@ -1,4 +1,4 @@ <pyarrow.Tensor> type: int32 -shape: (2, 6) +shape: (2, 3) strides: (12, 4) /Users/alenkafrim/Repos/arrow/python/pyarrow/lib.cpython-314-darwin.so:None: DocTestFailure =================================== short test summary info =================================== FAILED python/pyarrow/lib.pyx::pyarrow.lib.ChunkedArray FAILED python/pyarrow/lib.pyx::pyarrow.lib.Tensor ================================ 2 failed, 304 passed in 0.98s ================================ ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
