ENH make mktempdir more idiomatic plus the test too. Add doc string
ENH make mktempdir more idiomatic plus the test too. Add doc string