-
Notifications
You must be signed in to change notification settings - Fork 93
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
disutil commands fails for multiple tests #501
Comments
Appears to be an issue with how
|
We haven't tested |
Thanks for the quick reply @mrbean-bremen. I'm figuring this might be the case. If so, please close the issue! |
Hm, at a first glance I don't see anything in the code that should not work, but I can reproduce the issue. As far as I can see, there is some caching issue - the old fake os module is hold in import distutils.file_util in your test file (even if it is not used). |
I will probably add the import to the test code to fix the issue, similar to |
- these module can still hold references to fake modules - modules already loaded at test start are not affected - see pytest-dev#501 and pytest-dev#427
Describe the bug
While running multiple tests trying to use
disutil
to copy files between directories, every test after the first will fail.When running this tests in isolation (one at a time), they both succeed.
How To Reproduce
Please provide a unit test or a minimal code snippet that reproduces the
problem.
Your enviroment
Please run the following and paste the output.
The text was updated successfully, but these errors were encountered: