Skip to content

2 failures and 1 error in tests #1386

@yurivict

Description

@yurivict
========================================================================================== 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions