Add Testdir.__str__ to return str(self.tmpdir)

I just expected this with `monkeypatch.setenv("PYTHONPATH", str(testdir))`,
wondering why it was not picked up correctly.
`
This commit is contained in:
Daniel Hahler 2018-11-17 13:18:54 +01:00
parent 9dec146edf
commit 3acfa3abdc
1 changed files with 3 additions and 0 deletions

View File

@ -518,6 +518,9 @@ class Testdir(object):
def __repr__(self):
return "<Testdir %r>" % (self.tmpdir,)
def __str__(self):
return str(self.tmpdir)
def finalize(self):
"""Clean up global state artifacts.