diff options
author | Keri Volans <keri.volans@gmail.com> | 2020-05-02 18:54:23 +0100 |
---|---|---|
committer | Keri Volans <keri.volans@gmail.com> | 2020-05-03 10:45:06 +0100 |
commit | 678440e46d90815ef11584ab62e2fea130823397 (patch) | |
tree | 56e7174d09a507084f63e3ad5e6659d3e1ecee51 /src/_pytest/pytester.py | |
parent | be68496440508b760ba1f988bcc63d1d09ace206 (diff) | |
download | pytest-678440e46d90815ef11584ab62e2fea130823397.tar.gz |
7018: Use internal version of make_numbered_dir
Diffstat (limited to 'src/_pytest/pytester.py')
-rw-r--r-- | src/_pytest/pytester.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index 9fcda8f0b..051ea3fc7 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -35,6 +35,7 @@ from _pytest.main import Session from _pytest.monkeypatch import MonkeyPatch from _pytest.nodes import Collector from _pytest.nodes import Item +from _pytest.pathlib import make_numbered_dir from _pytest.pathlib import Path from _pytest.python import Module from _pytest.reports import TestReport @@ -1256,9 +1257,7 @@ class Testdir: Returns a :py:class:`RunResult`. """ __tracebackhide__ = True - p = py.path.local.make_numbered_dir( - prefix="runpytest-", keep=None, rootdir=self.tmpdir - ) + p = make_numbered_dir(root=Path(self.tmpdir), prefix="runpytest-") args = ("--basetemp=%s" % p,) + args plugins = [x for x in self.plugins if isinstance(x, str)] if plugins: |