[cleanup] Misc cleanup

This commit is contained in:
pukkandan 2022-06-28 10:40:54 +05:30
parent 47046464fa
commit ae61d108dd
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
10 changed files with 65 additions and 64 deletions

View file

@ -273,7 +273,11 @@ def batch_generator(name, num_tests):
def test_template(self):
for i in range(num_tests):
getattr(self, f'test_{name}_{i}' if i else f'test_{name}')()
test_name = f'test_{name}_{i}' if i else f'test_{name}'
try:
getattr(self, test_name)()
except unittest.SkipTest:
print(f'Skipped {test_name}')
return test_template