-
Notifications
You must be signed in to change notification settings - Fork 22
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
pytest error on (Windows + RAM drive) when using datadir fixture #36
Comments
Hi @abelcheung,
👍 from me, a "warning on Windows" section with the explanation you already provided sounds great. Would you like to contribute that? |
Sure, why not. I can wrap up a section and submit as PR soon, if everybody think it's fine. |
Sounds great! |
After more investigation, perhaps this issue can be closed as is. The incompatibility is not an isolated issue between python and ramdisk support, but a whole swamp of incompatible software against a specific type of ramdisk. There are 2 types of ramdisk:
|
Pytest is reporting
OSError
with even trivial test case below:Gist link for error log here.
It happens only when following requirements are all met:
datadir
orshared_datadir
is actually used in test case, even only as function argument. Tests not using these fixtures at all would be fine.For second point, above test case would succeed if pytest is instructed to use normal drive as temp, like:
As extra info, here is my RAM drive setup (if it is useful at all):
The issue pytest-dev/pytest#5826 has symptom very similar to this one, which ultimately points to long time unfixed python bug in
Path.resolve()
. Comment in Python bug 33016 also has some insight aboutresolve()
being unable to handle Windows filesystem API properly.While it may not be the responsibility for
pytest-datadir
to handle such failure, how about some warning ahead. such as in README, for similar user case? Because the bug doesn't manifest unless datadir plugin is installed and used, people may come search here for solution initially. Not to mention the real bug won't go away anytime soon...The text was updated successfully, but these errors were encountered: