From ce806001b0bc93d37faa3b255e907fb3d0a9bef6 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 7 Apr 2020 11:44:54 +0200 Subject: [PATCH] Fix doc for `numbered` arg with `TempPathFactory.mktemp` (#7014) --- src/_pytest/tmpdir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/tmpdir.py b/src/_pytest/tmpdir.py index c1e12da4f..ff3944dba 100644 --- a/src/_pytest/tmpdir.py +++ b/src/_pytest/tmpdir.py @@ -59,8 +59,8 @@ class TempPathFactory: Directory base name, must be a relative path. :param numbered: - If True, ensure the directory is unique by adding a number - prefix greater than any existing one: ``basename="foo"`` and ``numbered=True`` + If ``True``, ensure the directory is unique by adding a numbered + suffix greater than any existing one: ``basename="foo-"`` and ``numbered=True`` means that this function will create directories named ``"foo-0"``, ``"foo-1"``, ``"foo-2"`` and so on.