Skip to content

Commit dbae564

Browse files
committed
add info about PytestUnraisableError
1 parent 8f92ae7 commit dbae564

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_compression_remote_reductionist.py

+12
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,18 @@ def test_compression_and_filters_cmip6_forced_s3_using_local_Reductionist():
184184
assert result == 239.25946044921875
185185

186186

187+
# if pytest is run on a single thread, this test throws a PytestUnraisableException
188+
# followed at the end by a SegFault (test passes fine, and writes report etc); when
189+
# pytest runs in n>=2 threads all is fine. This is defo due to something in Kerchunk
190+
# tests/test_compression_remote_reductionist.py::test_compression_and_filters_cmip6_forced_s3_from_local_bigger_file_v1
191+
# /home/valeriu/miniconda3/envs/pyactive/lib/python3.12/site-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning: Exception ignored in: 'h5py._objects.ObjectID.__dealloc__'
192+
#
193+
# Traceback (most recent call last):
194+
# File "h5py/_objects.pyx", line 201, in h5py._objects.ObjectID.__dealloc__
195+
# File "h5py/h5fd.pyx", line 180, in h5py.h5fd.H5FD_fileobj_truncate
196+
# AttributeError: 'S3File' object has no attribute 'truncate'
197+
# For no I am just shutting this up, later we may have to take it up with Kerchunk
198+
@pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning")
187199
def test_compression_and_filters_cmip6_forced_s3_from_local_bigger_file_v1():
188200
"""
189201
Test identical to previous

0 commit comments

Comments
 (0)