Use pytest's tmp_path fixture to provide temporary directories for tests
Most of the current test suite functions use the same .outdir
directory as a working directory for tests. This means that running the whole suite in parallel is impossible, and also makes a number of assumptions about the current working directory of the user.
It would be better (IMO) to use the tmp_path
fixture from pytest to use a separate temporary directory for each test.