ITADN

test unremoved failing

#1476Closedleoyala 创建于 2026-03-09
L
leoyalacommented
The following tests are failing in latest version of master branch `56e6d92c`: 1. `test_unremoved_object` 2. `test_unremoved_attr` 3. `test_unremoved_module` I tested this in macOs 26.3.1 and python versions 3.12.12 and 3.14.3. How to reproduce 1. install nibabel using `pip install '.[test]'` 2. run tests: `pytest -n 8` ### Error messages ```bash =================================== FAILURES =================================== ____________________________ test_unremoved_object _____________________________ [gw4] darwin -- Python 3.12.12 /Users/ayala/conda/envs/nibabel/bin/python3.12 @mock.patch(_sched('OBJECT'), [('3.0.0', [('nibabel.nifti1', 'Nifti1Image')])]) def test_unremoved_object(): > with pytest.raises(AssertionError): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE <class 'AssertionError'> nibabel/tests/test_removalschedule.py:168: Failed _____________________________ test_unremoved_attr ______________________________ [gw4] darwin -- Python 3.12.12 /Users/ayala/conda/envs/nibabel/bin/python3.12 @mock.patch(_sched('ATTRIBUTE'), [('3.0.0', [('nibabel.nifti1', 'Nifti1Image', 'affine')])]) def test_unremoved_attr(): > with pytest.raises(AssertionError): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE <class 'AssertionError'> nibabel/tests/test_removalschedule.py:174: Failed ____________________________ test_unremoved_module _____________________________ [gw0] darwin -- Python 3.12.12 /Users/ayala/conda/envs/nibabel/bin/python3.12 @mock.patch(_sched('MODULE'), [('3.0.0', ['nibabel.nifti1'])]) def test_unremoved_module(): > with pytest.raises(AssertionError): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E Failed: DID NOT RAISE <class 'AssertionError'> nibabel/tests/test_removalschedule.py:162: Failed ```
关闭于 2026-03-10 8 条评论