diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index 24ddf4e9e..c59628948 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -518,6 +518,9 @@ class Testdir(object): def __repr__(self): return "" % (self.tmpdir,) + def __str__(self): + return str(self.tmpdir) + def finalize(self): """Clean up global state artifacts.