示例#1
0
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)
示例#2
0
def unload_kernels(datadir):
    yield
    kernel.unload(datadir)