tests can continue to use tempnam instead of introducing a dependency IMO