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:
parent
9dec146edf
commit
3acfa3abdc
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue