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

Use correct input arg type for _bestrelpath #9238

Merged
merged 7 commits into from Nov 1, 2021

Conversation

hp310780
Copy link
Contributor

Closes #8990

  • Correct input arg type passed to _pytest.pathlib.bestrelpath (expects a Path object).
  • Associated test.
  • Type annotations added.

src/_pytest/terminal.py Outdated Show resolved Hide resolved
changelog/8990.bugfix.rst Outdated Show resolved Hide resolved
src/_pytest/terminal.py Outdated Show resolved Hide resolved
testing/logging/test_reporting.py Outdated Show resolved Hide resolved
hp310780 and others added 3 commits October 27, 2021 19:19
Co-authored-by: Ran Benita <ran@unusedvar.com>
Add type annotation

Co-authored-by: Ran Benita <ran@unusedvar.com>
Change variable to Path object in place

Co-authored-by: Ran Benita <ran@unusedvar.com>
Copy link
Member

@bluetech bluetech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hp310780, this is good now.

As mentioned in the comment, we should remove the new test now, because with the asserts the problem is triggered by existing tests, so we don't need the new one. I will push this change myself, and merge.

testing/logging/test_reporting.py Outdated Show resolved Hide resolved
@bluetech bluetech merged commit 9d17ceb into pytest-dev:main Nov 1, 2021
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.

str/Path mixup in TerminalReporter
2 participants