The release versions are PyPi releases.
dir_fd
argument in several os
functions (#206).os.utime
, os.chmod
, os.chdir
, os.chown
, os.listdir
, os.stat
and os.lstat
(Python >= 3.3) (#205).os.open()
(#204).os.path.samefile
implementation (#193).ns
argument in os.utime()
(Python >= 3.3) (#192).os.stat_result
(Python >= 3.3) (#196).fake_filesystem_shutil
implementation, relying on the patched os
module instead (#194).rename
did not behave like os.rename
(#217, #224, #216, #227, #232, #233)errors
argument is supported for io.open()
and os.open()
add_real_file()
, add_real_directory()
and add_real_paths()
make real files and directories appear within the fake file system. File contents are read from the real file system only as needed (#170). See example_test.py
for a usage example.TestCase.copyRealFile()
in favor of add_real_file()
. copyRealFile()
remains only for backward compatability. Also, some less-popular argument combinations have been disallowed.CHANGES.md
, to the release manifestmox3
package is no longer a prerequisite--the portion required by pyfakefs has been integrated into pyfakefs (#182)FakeShutilModule.rmtree()
failed for directories ending with path separator (#177)pathlib.glob()
incorrectly handled case under MacOS (#167)TestCase.copyRealFile()
to copy a file from the real file system to the fake file system. This makes it easy to use template, data and configuration files in your tests.fs
.os
and os.path
modules (Python >= 3.6)pathlib
module (Python >= 3.4) (#29)os.replace
(Python >= 3.3)os.access
, os.chmod
, os.chown
, os.stat
, os.utime
: support for follow_symlinks
argument (Python >= 3.3)os.scandir
(Python >= 3.5) (#119)path
(#53)glob.glob
, glob.iglob
: support for recursive
argument (Python >= 3.5) (#116)glob.iglob
(#59)shutil.move
incorrectly moves directories (#145)open
(Python >= 3.3) (#147)Patcher
with py.test (#135)os.listdir
returned sorted instead of unsorted entriesio.open
, os.open
: support for encoding
argument (#120)os.makedirs
: support for exist_ok
argument (Python >= 3.2) (#98)io.open()
(#70)shutil.rmtree
: support for ignore_errors
and onerror
arguments (#72)os.fsync()
and os.fdatasync()
(#73)os.walk
: Support for followlinks
argumentshutil
functions like make_archive
do not work with pyfakefs (#104)shutil.copy
error with bytes contents (#105)fake_filesystem_unittest
(transparently patches all calls to faked implementations)os.utime
fails to traverse symlinks (#49)chown
incorrectly accepts non-integer uid/gid arguments (#30)fake_tempfile
is using AddOpenFile
incorrectly (#23)relpath
, abspath
and normpath
on Windows.open
in binary mode not working (#32)os.remove
doesn't work with relative paths (#31)mkstemp
returns no valid file descriptor (#19)open
methods lack IOError
for prohibited operations (#18)FakeFileOpen
keyword args do not match the __builtin__
equivalents (#5)There are no release notes for releases 2.6 and below. The following versions are still available on PyPi: