-
Notifications
You must be signed in to change notification settings - Fork 91
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
_add_c_drive() failure when user does not have access to c: #573
Comments
I will try to make time to debug further and see if I can offer a patch. For now I've reverted to an older version. |
Thanks - that was a kind of micro-optimization that probably was too fragile. I think I'll just revert that (Windows-specific) optimization, I didn't like it anyway. It will add a millisecond to the test setup under Windows, but I can check later if this can be optimized in a nicer way. |
- can break tests under some conditions - see #573
Please check if the current master works for you, and if you need a patch release. |
Yes, that works. Thank you. Test process: I created a temporary build configuration in TeamCity so that I could closely replicate the original process. In this configuration wrote a small script that installs |
Thanks! I didn't add a regression test, as this was basically a revert, but had to ensure that it works in your use case. |
Patch release would be convenient, but it is not necessary. We can wait until the next one. |
Ok, thanks - in this case I will wait if something else comes up, and probably make a patch in a couple of weeks. |
The bugfix release is out now. |
Describe the bug
When using pyfakefs 4.3.0 with pytest, the patcher's
setUp
function calls_add_c_drive
. This works when I execute locally or on my build server when executed manually. It fails, however, when run by the build server using a service account. I think the problem is that the service account does not have access to read theC:
drive. Side note: for these tests I actually want to simulate a Linux filesystem. ThesetUp
function is setting upC:
before I can intercept thefs
object and set theos
to Linux.Final parts of the stack trace:
How To Reproduce
Install pytest (6.1.2) and pyfakefs (4.3.0)
Create a simple test like the following:
Run
pytest
from an account that does not have access toC:
.Your enviroment
The text was updated successfully, but these errors were encountered: