Mockfs

Latest version: v2.0.2

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

Scan your dependencies

Page 2 of 3

1.1.0

======
* More Python 3 improvements.
* Switch to pytest.

1.0.2

======
* Add Travis-CI testing.
* Only patch `os.getcwdu` on Python 2.
* Only patch `os.file` on Python 2.
* `setuptools` packaging.
* initial Python 2/3 support.
* Raise `OSError` when `os.makedirs` is used on an existing path.

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.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.