Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor tweaks for terminal.py #9243

Merged
merged 4 commits into from
Nov 6, 2021

Conversation

symonk
Copy link
Member

@symonk symonk commented Oct 27, 2021

Some minor tweaks to the terminal.py module, namely:

  • Removal of unused args for mywriter and _locationline (tags and lineno respectively), neither appear used
  • Some extra typing in places
  • Change getreports to use a list comp
  • Simplify _getfailureheadline

edit: Other merged PRs have done some of the same work here, so its quite miniscule now

src/_pytest/terminal.py Outdated Show resolved Hide resolved
src/_pytest/terminal.py Outdated Show resolved Hide resolved
src/_pytest/terminal.py Outdated Show resolved Hide resolved
src/_pytest/terminal.py Outdated Show resolved Hide resolved
src/_pytest/terminal.py Outdated Show resolved Hide resolved
src/_pytest/terminal.py Outdated Show resolved Hide resolved
@symonk
Copy link
Member Author

symonk commented Nov 2, 2021

Thanks @bluetech between some reverts & the other PR outlined this ended up being tiny, sorry to take your time for such trivial changes in the end. Appreciate it as always (will make sure to squash if you feel the list comp change is worth while!)

@symonk symonk merged commit 7037a58 into pytest-dev:main Nov 6, 2021
@symonk symonk deleted the minor-tidyup-of-terminal-py branch November 6, 2021 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants