def with_leapseconds(datafiles): for item in datafiles: if item.type == 'ls': kernel.load(item.path) break else: pytest.skip('No leap seconds kernel available') yield kernel.unload(item.path)
def unload_kernels(datadir): yield kernel.unload(datadir)