Skip to content

Fix incorrect result of getmodpath method. - #6202

Merged
asottile merged 2 commits into
pytest-dev:masterfrom
linw1995:fix_getmodpath
Nov 18, 2019
Merged

Fix incorrect result of getmodpath method.#6202
asottile merged 2 commits into
pytest-dev:masterfrom
linw1995:fix_getmodpath

Conversation

@linw1995

Copy link
Copy Markdown
Contributor

Resolves #6189

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good! mind adding a quick test which demonstrates this change?

@blueyed

blueyed commented Nov 17, 2019

Copy link
Copy Markdown
Contributor

@linw1995
Let me/us know if you'd rather like to skip this - I'd be happy to help you there with hardening some existing test, and if you like to do it yourself I suggest looking at existing tests and hardening them (hopefully there is one already triggering this, but just not matching strictly).

@linw1995

Copy link
Copy Markdown
Contributor Author

@blueyed Thank you for helping. @asottile I hardened one existing test for demonstrating this change.
hope it will be enough.

@nicoddemus

Copy link
Copy Markdown
Member

Thanks @linw1995, great finding and great PR. 👍

We could make a separate test for the fix, but the way it is now looks enough to me. 😁

@asottile
asottile merged commit eeeb196 into pytest-dev:master Nov 18, 2019
@linw1995
linw1995 deleted the fix_getmodpath branch November 19, 2019 01:41
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.

'.[' replaced with '[' in the headline shown of the test report

4 participants