File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ Fixed the TOML type of the :confval: `tmp_path_retention_count ` settings in the API reference from number to string.
Original file line number Diff line number Diff line change @@ -2465,14 +2465,14 @@ passed multiple times. The expected format is ``name=value``. For example::
24652465 .. confval :: tmp_path_retention_count
24662466
24672467 How many sessions should we keep the `tmp_path ` directories,
2468- according to `tmp_path_retention_policy `.
2468+ according to :confval: `tmp_path_retention_policy `.
24692469
24702470 .. tab :: toml
24712471
24722472 .. code-block :: toml
24732473
24742474 [pytest]
2475- tmp_path_retention_count = 3
2475+ tmp_path_retention_count = "3"
24762476
24772477 .. tab :: ini
24782478
Original file line number Diff line number Diff line change @@ -225,13 +225,16 @@ def pytest_addoption(parser: Parser) -> None:
225225 parser .addini (
226226 "tmp_path_retention_count" ,
227227 help = "How many sessions should we keep the `tmp_path` directories, according to `tmp_path_retention_policy`." ,
228- default = 3 ,
228+ default = "3" ,
229+ # NOTE: Would have been better as an `int` but can't change it now.
230+ type = "string" ,
229231 )
230232
231233 parser .addini (
232234 "tmp_path_retention_policy" ,
233235 help = "Controls which directories created by the `tmp_path` fixture are kept around, based on test outcome. "
234236 "(all/failed/none)" ,
237+ type = "string" ,
235238 default = "all" ,
236239 )
237240
You can’t perform that action at this time.
0 commit comments