isolated doctest setup/teardown