-
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
Pyfakefs doesn't work with Python 2.6+ backport of os.scandir #332
Comments
Yes, unfortunately it has the same limitations as lxml. The backport is a C based module, and thus cannot be faked without explicit support in the library. Currently, we have no support for any non-standard libraries, and I'm not sure if that would be in the scope of this package. @jmcgeheeiv - what do you think? |
If it's C/C++, it is technically infeasable to patch it and fake it.
…On Thu, Dec 7, 2017 at 8:10 AM, mrbean-bremen ***@***.***> wrote:
Yes, unfortunately it has the same limitations as lxml. The backport is a
C based module, and thus cannot be faked without explicit support in the
library. Currently, we have no support for any non-standard libraries, and
I'm not sure if that would be in the scope of this package. @jmcgeheeiv
<https://github.com/jmcgeheeiv> - what do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#332 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADjLAREYeVjd_Jc5i2um0Ad7Rr3OHsRbks5s-A4GgaJpZM4Q5sq3>
.
|
Well, we could fake it the same way we fake |
I have thought about this a little more, and I think that we can refactor |
@OskarPersson - please check if this works for you and reopen otherwise. |
Hmm, no I can't get it to work :/ I cloned the master branch, created a new Python 2.7.14 virtualenv, pip installed scandir and tested with
I also tried setting up a simple test in
This results in the following error:
|
Ok, I will check this tomorrow, if I find the time. |
- adapted example test to work with scandir module - fixed scandir test to work with scandir module - see #332
Ok, several things here:
|
From my tests this seems to work now, thanks! |
Glad to hear that! |
pyfakefs doesn't work with the backport of
os.scandir
Is this possible or does it have the same limitations as lxml?Currently the backport, just like in #119, doesn't find any directories created by pyfakefs and raises an OSError:
The text was updated successfully, but these errors were encountered: