Skip to content

Commit 9d43056

Browse files
adamtheturtleclaude
andcommitted
fix: restore pytest ini_options and disable capture for Click compatibility
The [tool.pytest] section (introduced by main's a30cb99 commit) was wrong and should be [tool.pytest.ini_options]. Also add --capture=no to avoid a conflict between pytest's stdout/stderr capture and Click 8.3.1's CliRunner StreamMixer, which causes ValueError: I/O operation on closed file. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 47dcc5e commit 9d43056

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,9 @@ keep_full_version = true
303303
max_supported_python = "3.14"
304304

305305
[tool.pytest]
306-
xfail_strict = true
307-
log_cli = true
306+
ini_options.xfail_strict = true
307+
ini_options.log_cli = true
308+
ini_options.addopts = "--capture=no"
308309

309310
[tool.coverage]
310311
run.branch = true

0 commit comments

Comments
 (0)