Mockfs

Latest version: v2.0.0

Safety actively analyzes 630406 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.0.1

======
* Raise `IOError` when trying to write a file into a mockfs
directory that does not exist.
* Ensure that mockfs does close files that were never opened,
eg. when exceptions are thrown while saving files.

1.0.0

======
* Support `open(path, 'rU')` for opening files.
* Source tree reorganization.
* Restored `install` and `uninstall` for the final v1.0 API.

0.9.0

======
* Add `os.getcwd` and `os.getcwdu`.
* Enhance `os.rmdir` and `os.remove` to handle relative paths.
* Add `os.chdir` and `os.path.abspath`.
* Add `os.path.getsize`.
* Add `shutil.rmtree`.
* Add `os.unlink`
* Implement `open` and `close` for files by integrating Michael Foord's
storage.py.
* New `setup` and `teardown` replacements for `install` and `uinistall`
(REVERTED).

0.8.0

======
* Add `glob.glob`.
* Add `os.makedirs`.
* Add `os.rmdir`.
* Add `os.remove`
* Raise `OSError` from `os.listdir` on non-existant paths.

0.6.0

======
* Initial `glob` module support.
* `distutils` packaging.

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.