Merge pull request #4409 from blueyed/str

Add Testdir.__str__ to return str(self.tmpdir)
This commit is contained in:
Daniel Hahler 2018-11-18 12:52:31 +01:00 committed by GitHub
commit cdbe2299ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.