def test_invalid_scalar_index(adata, index):
    # https://github.com/theislab/anndata/issues/619
    with pytest.raises(IndexError, match=r".*index.* out of range\."):
        _ = adata[index]
def test_disk_usage_sensor_is_stateless():
    sensor = disk_usage.DiskUsage()
    ok_([] != sensor.measure())