-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
topic: configrelated to config handling, argument parsing and config filerelated to config handling, argument parsing and config filetopic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressedproblem that needs to be addressed
Description
pytest 3.7.2 / Python 3.7.0 / macOS
When writing a pytest plugin, I want to test the help text generated for the ini options that were added. But I can't because those lines are for some reason truncated to 78 characters.
Here is a minimal example to reproduce the issue:
# test_something.py
pytest_plugins = ["pytester"]
def test_help_text(testdir):
result = testdir.runpytest('--help')
trunc_line = 'python_classes (args) prefixes or glob names for Python test class discover'
whole_line = 'python_classes (args) prefixes or glob names for Python test class discovery'
assert trunc_line in result.stdout.str()
assert whole_line in result.stdout.str()Interestingly, not all lines are truncated - the CLI options are wrapped, and the last few lines of output are correctly determining my terminal width and using that. It seems only the section about ini-options is getting truncated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
topic: configrelated to config handling, argument parsing and config filerelated to config handling, argument parsing and config filetopic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressedproblem that needs to be addressed