pyfakefs icon indicating copy to clipboard operation
pyfakefs copied to clipboard

Provides a fake file system that mocks the Python file system modules.

Results 15 pyfakefs issues
Sort by recently updated
recently updated
newest added

**Describe the bug** If I have a fully resolved `pathlib.Path` object (such as ist returned by e.g. `pathlib.Path.cwd()`) that is created outside of the scope of the `fakefs` context (I...

#### Describe the changes Add a call stack check for fake filesystem, `os` and `os.path` methods in their `handle_original_call` wrapper to see if they are being called from a module...

**Describe the bug** `Path().exists` and `Path().unlink` for example don't work well with `additional_skip_names`. Context: https://github.com/pytest-dev/pyfakefs/issues/1021#issuecomment-2132637499 > The current implementation is incomplete (yes, actually all methods should respect additional_skip_names) and ugly...

bug

**Describe the bug** Hello together, I have hard times finding out what causes the following error: I am using the `fs` (not `fs_module` etc. -> fs) inside a fixture. There...

limitation

**Is your feature request related to a problem? Please describe.** https://github.com/pytest-dev/pyfakefs/blob/main/docs/troubleshooting.rst#modules-not-working-with-pyfakefs documents a number of modules, most obviously multiprocessing and subprocess, as not playing nice with pyfakefs. **Describe the solution...

enhancement