-
Notifications
You must be signed in to change notification settings - Fork 267
Closed
Description
========================================================================================== ERRORS ===========================================================================================
_____________________________________________________________________ ERROR at teardown of TestRunAllTests.test_second ______________________________________________________________________
cls = <class 'nibabel.tests.test_api_validators.TestRunAllTests'>
@classmethod
def teardown_class(cls):
# Check that both validate_xxx tests got run
> assert cls.run_tests == {'first', 'second'}
E AssertionError: assert {} == {'first', 'second'}
E
E Full diff:
E + {}
E - {
E - 'first',
E - 'second',
E - }
nibabel/tests/test_api_validators.py:116: AssertionError
========================================================================================= FAILURES ==========================================================================================
________________________________________________________________________________ TestRunAllTests.test_first _________________________________________________________________________________
self = <nibabel.tests.test_api_validators.TestRunAllTests object at 0x3c52dc055550>
def meth(self):
for imaker, params in self.obj_params():
> validator(self, imaker, params)
nibabel/tests/test_api_validators.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nibabel.tests.test_api_validators.TestRunAllTests object at 0x3c52dc055550>, obj = 1, param = 2
def validate_first(self, obj, param):
> self.run_tests.add('first')
E AttributeError: 'dict' object has no attribute 'add'
nibabel/tests/test_api_validators.py:108: AttributeError
________________________________________________________________________________ TestRunAllTests.test_second ________________________________________________________________________________
self = <nibabel.tests.test_api_validators.TestRunAllTests object at 0x3c52dc055a10>
def meth(self):
for imaker, params in self.obj_params():
> validator(self, imaker, params)
nibabel/tests/test_api_validators.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <nibabel.tests.test_api_validators.TestRunAllTests object at 0x3c52dc055a10>, obj = 1, param = 2
def validate_second(self, obj, param):
> self.run_tests.add('second')
E AttributeError: 'dict' object has no attribute 'add'
nibabel/tests/test_api_validators.py:111: AttributeError
===================================================================================== warnings summary ======================================================================================
Version: 5.3.2
Python-3.11
FreeBSD 14.1
Metadata
Metadata
Assignees
Labels
No labels