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
test_UNC_path failure in test_import #59543
Comments
On the Win64 buildbot, trying to access an UNC path raises PermissionError, which makes a test fail: ====================================================================== Traceback (most recent call last):
File "D:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_import.py", line 469, in test_UNC_path
os.listdir(unc)
PermissionError: [Error 5] Access is denied: '\\\\hades\\D$\\buildbot.python.org\\3.x.kloth-win64\\build\\build\\test_python_3612\\@test_3612_tmp\\*.*' If this is expected or normal, maybe we should simply skip the test when the listdir() call above fails. |
Example URL for the aforementioned failure: |
Well os.listdir doesn't fail to access a UNC path on Windows x64 in |
Well, this particular path is the build directory itself, so it's certainly accessible through the normal (non-UNC) path. There has to be something else :-) Jeremy told me his buildbot process runs as a service, perhaps that is related? |
It's using an administrative share (\\server\d$) and those are usually |
Ok, so I guess skipping the test in this case would be appropriate? |
For this particular buildbot setup, maybe yes. But it would be possible |
The buildbot service account is a standard user (per the buildbot After much searching, I still cannot find any information on how to |
My guess is that it's to do with Service Hardening. I did a quick dump |
Simplest solution might be to catch PermissionError and call skipTest from within. This would allow buildbots to run the test which had access through the relevant share. |
New changeset 4d480a2a6296 by Antoine Pitrou in branch '3.2': New changeset 7d5e84a44b82 by Antoine Pitrou in branch 'default': |
New changeset 7eac87fa7a06 by Antoine Pitrou in branch '2.7': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: