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

Recover from TypeError raised by inspect.getfile #74

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

Joonalai
Copy link

@Joonalai Joonalai commented Nov 22, 2023

This PR:

  • Makes it possible to recover from TypeError raised by inspect.getfile when finding plugin path. This occurs when running tests using pytest-xdist pytest plugin since it adds <module '__main__' (built-in)> into the call stack

@Joonalai Joonalai force-pushed the fix-pytest-xdist-plugin-path branch from 2ca9849 to a3e7b04 Compare November 22, 2023 09:00
@Joonalai Joonalai changed the title Fix TypeError when using pytest-xdist Recover from TypeError raised by inspect.getfile Nov 22, 2023
tools/resources.py Show resolved Hide resolved
@Joonalai Joonalai force-pushed the fix-pytest-xdist-plugin-path branch from a3e7b04 to d41690f Compare November 24, 2023 06:49
@Joonalai Joonalai requested a review from LKajan November 24, 2023 07:17
tools/resources.py Show resolved Hide resolved
since pytest-xdist adds <module '__main__' (built-in)> into stack
@Joonalai Joonalai force-pushed the fix-pytest-xdist-plugin-path branch from d41690f to 6865dbe Compare November 26, 2023 09:36
@LKajan LKajan merged commit 7abf38a into GispoCoding:main Nov 27, 2023
5 checks passed
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.

2 participants