1. Holger Krekel
  2. tox
  3. Pull requests

Pull requests

#27 Merged
Repository
tox_quickstart
Branch
default
Repository
tox
Branch
default

Make tests/test_quickstart.py tests run in a temporary directory so that they don't try to clobber tox.ini in current directory

Author
  1. Marc Abramowitz
Reviewers
Description

I misunderstood how the tmpdir argument to tests worked. I thought that it called os.chdir for you, but apparently it doesn't, so it was doing nothing. I rewrote the tests to use a pytest fixture that sets the current directory to a temporary directory instead.

  • Learn about pull requests

Comments (3)

  1. Holger Krekel repo owner

    Please accept tmpdir in the chdir fixture instead of creating your own. This way pytest has a chance of managing the temp dirs. otherwise running tests will create a growing list of tmpdir.