./devel/py-fakefs, Fake file system that mocks the Python file system modules

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.7.2, Package name: py37-fakefs-3.7.2, Maintainer: bsiegert

pyfakefs implements a fake file system that mocks the Python file system
modules. Using pyfakefs, your tests operate on a fake file system in
memory without touching the real disk. The software under test requires
no modification to work with pyfakefs.


Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: cce381dfd1860e46deae2d01dab9ba57e3591867
RMD160: b33252242ccc7ce02f427f10fbf54b34084e2231
Filesize: 158.233 KB

Version history: (Expand)


CVS history: (Expand)


   2020-03-03 06:58:24 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fakefs: updated to 3.7.2

Version 3.7.2
This version backports some fixes from master.

Fixes
* Fixed handling of relative paths in `lresolve` / `os.lstat`
* Fixed `os.walk` if path ends with path separator
* Fixed handling of empty path in `os.makedirs`
* Fixed handling of `os.TMPFILE` flag under Linux
* Fixed behavior of `os.makedirs` in write-protected directory
   2020-01-03 13:37:54 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fakefs: updated to 3.7.1

Version 3.7.1:
This version adds support for Python 3.7.6 and 3.8.1.

Fixes
* Adapted fake `pathlib` to changes in Python 3.7.6/3.8.1

Version 3.7:

Fixes
This version adds support for Python 3.8.

_Note:_ This is the last pyfakefs version that will support Python 2.7
and Python 3.4 (possible bug fix releases notwithstanding).

* added support for Python 3.8
* added preliminary support for Windows-specific `os.stat_result` attributes
  `tst_file_attributes` and `st_reparse_tag`
* added support for fake `os.sendfile` (Posix only, Python 3 only)

Fixes
* support `devnull` in Windows under Python 3.8
* fixed side effect of calling `DirEntry.stat()` under Windows (changed
  st_nlink)
* fixed problem of fake modules still referenced after a test in modules
  loaded during the test
* correctly handle missing read permission for parent directory
* raise for `os.scandir` with non-existing directory

Infrastructure
* fixed CI tests scripts to always propagate errors
   2019-10-19 16:43:35 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fakefs: updated to 3.6.1

Version 3.6.1
Fixes
* avoid rare side effect during module iteration in test setup
* make sure real OS tests are not executed by default
   2019-08-21 15:02:03 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fakefs: updated to 3.6

Version 3.6:

Changes
* removed unneeded parameter use_dynamic_patch

New Features
* support for src_dir_fd and dst_dir_fd arguments in os.rename,
  os.replace and os.link
* added possibility to use modules instead of module names for the
  additional_skip_names argument
* added argument allow_root_user to Patcher and UnitTest to allow
  forcing non-root access
* added basic support for os.pipe
* added support for symlinks in add_real_directory
* added new public method add_real_symlink

Infrastructure
* added check for correctly installed Python 3 version in Travis.CI

Fixes
* fixed incorrect argument names for some os functions
* fake DirEntry now implements os.PathLike in Python >= 3.6
* fixed incorrect argument name for os.makedirs
* avoid pytest warning under Python 2.7
* add __next__ to FakeFileWrapper
   2019-04-30 09:54:21 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-fakefs: updated to 3.5.8

Version 3.5.8
Another bug-fix release that mainly fixes a regression wih Python 2 that has \ 
been introduced in version 3.5.3.

Fixes
regression: patching build-in open under Python 2 broke unit tests
fixed writing to file added with add_real_file
fixed argument name of FakeIOModule.open

Infrastructure
more changes to run tests using python setup.py test under Python 2 regardless \ 
of pathlib2 presence
   2019-02-17 09:36:33 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-fakefs: updated to 3.5.7

Version 3.5.7:
This is a mostly a bug-fix release.

Fixes
 * Regression: pathlib did not get patched in the presence of pathlib2
 * fixed errors if running the PyCharm debugger under Python 2

Infrastructure
 * do not run real file system tests by default
 * make tests run if running python setup.py test under Python 2

Version 3.5.6:

Changes
 * import external pathlib2 and scandir packages first if present

Version 3.5.5:

Fixes
 * removed shebang from test files to avoid packaging warnings

Version 3.5.4:

New Features
 * added context manager class Pause for pause/resume

Fixes
 * fixed AttributeError shown while displaying fs in a failing pytest
   in Python 2
 * fixed permission handling for root user
 * avoid AttributeError triggered by modules without __module__ attribute

Version 3.5.3:
This is a minor release to have a version with passing tests for OpenSUSE
packaging.

New Features
 * automatically patch file system methods imported as another name like
   from os.path import exists as my_exists, including builtin open
   and io.open

Fixes
 * make tests for access time less strict to account for file systems that
   do not change it immediately

Version 3.5.2:
This is mostly a bug-fix release.

New Features
 * added support for pause/resume of patching the file system modules
 * allow to set current group ID, set current user ID and group ID as
   st_uid and st_gid in new files

Fixes
 * fixed using modules_to_patch
 * fixed recursion error on unpickling the fake file system
 * allow trailing path in add_real_directory

Version 3.5:

Changes
 * This version of pyfakefs does not support Python 3.3. Python 3.3 users
   must keep using pyfakefs 3.4.3, or upgrade to a newer Python version.
 * The deprecation warnings for the old API are now switched on by default.
   To switch them off for legacy code, use:
   python
   from pyfakefs.deprecator import Deprecator
   Deprecator.show_warnings = False

New Features
 * Improved automatic patching:
   * automatically patch methods of a patched file system module imported like
     from os.path import exists
   * a module imported as another name (import os as _os) is now correctly
     patched without the need of additional parameters
   * automatically patch Path if imported like from pathlib import Path
   * parameter patch_path has been removed from UnitTest and Patcher,
     the correct patching of path imports is now done automatically
   * UnitTest /Patcher arguments can now also be set in setUpPyfakefs()
 * added possibility to set user ID
 * added side_effect option to fake files
 * added some support for extended filesystem attributes under Linux
 * handle contents=None in create_file() as empty contents if size not
   set
 * added pathlib2 support
 * added support for null device
 * improved error message for "Bad file descriptor in fake filesystem"
   2018-05-25 06:01:28 by Benny Siegert | Files touched by this commit (4)
Log message:
New package, py-fakefs-3.4.1.

pyfakefs implements a fake file system that mocks the Python file system
modules. Using pyfakefs, your tests operate on a fake file system in
memory without touching the real disk. The software under test requires
no modification to work with pyfakefs.

Part of PR pkg/52941.