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

Check for <cwd> before removing first item from sys.path in modify_sys_path. #7277

Merged
merged 3 commits into from
Aug 9, 2022

Conversation

karthiknadig
Copy link
Contributor

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

This PR adds code to check if the item being removed from sys.path in modify_sys_path is in fact current working directory. Adds tests for the change.

Closes #7231

@jacobtylerwalls jacobtylerwalls added this to the 2.15.0 milestone Aug 8, 2022
@coveralls
Copy link

coveralls commented Aug 8, 2022

Pull Request Test Coverage Report for Build 2825003760

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.0003%) to 95.257%

Totals Coverage Status
Change from base Build 2822615515: 0.0003%
Covered Lines: 16832
Relevant Lines: 17670

πŸ’› - Coveralls

@github-actions

This comment has been minimized.

DanielNoord
DanielNoord previously approved these changes Aug 9, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2022

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit 32c69e5

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Thank you for detecting this issue and for fixing it!

@jacobtylerwalls jacobtylerwalls changed the title Check for <cwd> before removing first item form sys.path in modify_sys_path. Check for <cwd> before removing first item from sys.path in modify_sys_path. Aug 9, 2022
@jacobtylerwalls jacobtylerwalls merged commit 6170086 into pylint-dev:main Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pylint removes first item from sys.path when running from runpy.
5 participants