-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix #2597 by checking that the directory exists #2602
Conversation
Will fix the Python 2.7 errors if this is reasonable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can potentially make use of the site.addpackage()
method here. See suggestions.
Did the suggested changes. I don't understand the code well enough to write really good tests here, I'm afraid. The test currently mocks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments, you should not need to change existing tests since the functionality should remain the same. Additionally, you will need to add couple of new fixtures in the istalled repository fixture such that the following cases are also evaluated;
- Multiple lines in
.pth
file. - Executable in
.pth
file.
OK, I reverted the test file so you can see the error. |
@PetterS I have applied a few changes. The changes themselves work; but need to rework for compatibility and add test case for executable |
60b2a8a
to
2978cbe
Compare
Thanks for fixing this! |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Resolves: #2597