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
Don't mock some os functions on windows #1912
Conversation
@vijayphoenix Can you check if it works properly now ?. It's still shows me same error after do modification as in this PR
|
I think you have not included the changes in the proper location file as your stack trace corresponds to the old file. |
@vijayphoenix earlier was my mistake I change in wrong files but still got same error after do proper changes
|
The stack trace is still the same (the line no. should change as the file was modified). To avoid these types of problems, I suggest you make a new env. |
@vijayphoenix Yeah right actually I messed with some files its working great :-) |
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.
Thank you for fixing this.
Note internally, I've replaced this code by:
for fop in FORBIDDEN_OS_FUNCTIONS:
if os.name == "nt" and not hasattr(os, fop):
continue # Not all os functions are available on Windows.
...
It should be more generic, rather than hardcoding specific values. However I don't have access to windows machine so I can't really test this.
Tested; works on my machine. |
Fix #817
Related #1911 (comment)