logging.tests: fix test failure that happens if factor is in a
non-writable directory