-
Notifications
You must be signed in to change notification settings - Fork 92
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
shutil.make_archive does not work with pyfakefs #104
Comments
Seems like you are out of luck here - shutil.make_archive() is not implemented in fakefs (yet), and I don't see any workaround at the moment other than using zipfile directly. |
@mrbean-bremen should I open an issue to shutil maintainers? |
No, this is an issue with pyfakefs, so this is already the right place for the issue. |
I just had another look at this, and the reason why it does not work is the usage of the real os module inside shutil.py. If removing 'shutil' from SKIPNAMES, it will work (if also removing the unneeded .zip extension from the filename in the above test code). |
- added possibility to add own skipnames in derived test class - fixes pytest-dev#104 - can be used to fix pytest-dev#106
Closing since @mrbean-bremen removed shutil from SKIPNAMES. |
Hi, guys
It's me again with ZIP issues. I started using shutil.make_archive and it seems that it does not work with fakefs.
Any idea how it can be fixed?
Fails with the following error:
The text was updated successfully, but these errors were encountered: