We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 249986b commit 1712cb0Copy full SHA for 1712cb0
nibabel/tests/test_api_validators.py
@@ -99,18 +99,18 @@ class TestRunAllTests(ValidateAPI):
99
We check this in the module teardown function
100
"""
101
102
- run_tests = []
+ run_tests = {}
103
104
def obj_params(self):
105
yield 1, 2
106
107
def validate_first(self, obj, param):
108
- self.run_tests.append('first')
+ self.run_tests.add('first')
109
110
def validate_second(self, obj, param):
111
- self.run_tests.append('second')
+ self.run_tests.add('second')
112
113
@classmethod
114
def teardown_class(cls):
115
# Check that both validate_xxx tests got run
116
- assert cls.run_tests == ['first', 'second']
+ assert cls.run_tests == {'first', 'second'}
0 commit comments