From 92eb44384245fec38d54d4d1ced5976db03cf2f5 Mon Sep 17 00:00:00 2001 From: Yusuke Kadowaki Date: Sun, 23 Oct 2022 17:23:54 +0900 Subject: [PATCH] Fix type of tmp_path_retention_count option --- src/_pytest/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_pytest/main.py b/src/_pytest/main.py index 79a24632b..ca2b976b2 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -232,6 +232,7 @@ def pytest_addoption(parser: Parser) -> None: "--tmp-path-retention-count", dest="tmp_path_retention_count", default=3, + type="int", metavar="num", help="How many sessions should we keep the `tmp_path` directories, according to `tmp_path_retention_policy`.", )