https://github.com/jmcgeheeiv/pyfakefs

sort by:
Revision Author Date Message Commit Date
daf8b2c Release 4.6.1 - fixes incompatibility with Python 3.11 beta 4 13 July 2022, 19:27:56 UTC
93ee5c1 Add fs_module to conftest.py for plugin tests - remove installing pyfakefs from CI - fixes #687 13 July 2022, 19:06:35 UTC
d457a3b Add support for opener in open() - needed to support tempfile in Python 3.11 - fixes #686 13 July 2022, 18:48:37 UTC
5f59b09 Move test to pytest plugin tests where it belongs - test needs installed pyfakefs - shall fix #687 13 July 2022, 16:44:24 UTC
a41a03d Prepare next release 12 July 2022, 18:42:22 UTC
6bc3162 Overwrite instance check for PathLibPathModule (#685) - fixes #666 without the need to skip _pytest.pathlib patching - add module and session scoped fs fixtures - fixes #684 11 July 2022, 16:31:30 UTC
bbba0c6 Change pathlib.Path.owner()/group() to behave like real os - both methods now look up the real user/group name for the user/group id that is associated with the fake file - assumes a valid user and group id is set - closes #678 07 June 2022, 17:32:35 UTC
95e9fb5 Add some support for Python 3.11 - add Python 3.11 to CI tests - adapt the pathlib tests to work with Python 3.11 - adapt handling of pathlib in unfaked modules: need to ensure that the original os module is used, as pathlib has removed the accessor layer and now directly accesses os - add target_is_directory argument to symlink (ignored) - 'U' open mode is no longer allowed in Python 3.11 - closes #677 31 May 2022, 18:50:14 UTC
8c4f409 Remove support for Python 3.6 - remove Python 3.6 from CI, adapt documentation - remove stat_float_times (deprecated since 3.3, removed in 3.7) 30 May 2022, 10:45:17 UTC
2d4d30c Update openpyxl from 3.0.9 to 3.0.10 19 May 2022, 18:17:58 UTC
9f99980 Change handling of root dir under Windows - as Windows has no root dir as such, we use the current drive as root dir to better emulate the fs - as in the real fs, if a path starts with a path separator, it points to the current drive (e.g. the root of cwd) - fixes #673 11 May 2022, 17:45:47 UTC
9a38796 Add Python 3.9 and 3.10 to tox.ini (#670) * add Python 3.9 and 3.10 to tox.ini * tox.ini remove py35, change pypy to pypy3 29 March 2022, 04:51:27 UTC
5db2f50 PyTest -> pytest 28 March 2022, 19:12:02 UTC
9021b45 Release 4.5.6 - fixes a regression which broke tests with older pytest versions 17 March 2022, 19:08:30 UTC
07adaba Use windows-latest instead of windows-2016 for CI builds 17 March 2022, 18:48:24 UTC
9e8fbfd Add tests with different pytest versions - change first supported pytest version to 3.0 (older version do not work anymore) 15 March 2022, 20:37:32 UTC
d81cd56 Only skip _pytest.pathlib if it is actually present - see #669 15 March 2022, 19:58:52 UTC
72940b9 Release 4.5.5 - bugfix release, needed for compatibility with pytest 7.0 14 February 2022, 18:45:43 UTC
2ee83a3 Use RealPathlibModule for all skipped modules - avoids the use of FakePathLibPath in pathlib - add _pytest.pathlib to skipped modules, fake isinstance check for RealPathlibPathModule - prevents issue with _pytest.pathlib in pytest 7.0.0, which would cause all tests with fs fixture to fail - see #666 13 February 2022, 19:51:56 UTC
a96bdbb Update pandas to 1.4.1 (#667) * Only update for Python >= 3.7 12 February 2022, 17:16:34 UTC
80daca8 Open binary no encoding On open() binary mode should not allow an encoding argument. If encoding is passed with binary mode, raise: ValueError(binary mode doesn\'t take an encoding argument) Closes #664. 03 February 2022, 19:56:31 UTC
4dc8615 Correctly handle full disk after append - do not update flush position before disk size is checked - see #660 30 January 2022, 12:50:32 UTC
9f486bc Correctly handle reading/writing pipes via file - make numBytes argument optional - open real pipe as file and store it if needed - fixes #661 28 January 2022, 19:13:44 UTC
c25e65e Do not set size to 0 on setting initial content - caused file system file to be wrong for non-empty files - tests: add contextmanager version of assert_raises_os_error - fixes #660 28 January 2022, 19:13:44 UTC
7ff50a8 Update pandas to 1.4.0 (#658) * Update pandas from 1.3.5 to 1.4.0 for Python > 3.7 22 January 2022, 17:58:47 UTC
197e388 Release 4.5.4 - minor bugfix release 12 January 2022, 16:32:16 UTC
3008d05 Fix some bytes warnings - make bytes warning an error in test run - see #651 09 January 2022, 17:31:16 UTC
d828745 Update pandas to 1.3.5 (#654) * Update pandas from 1.3.4 to 1.3.5 12 December 2021, 17:53:26 UTC
f003702 Update xlrd to 2.0.1 (#653) * Update xlrd from 1.2.0 to 2.0.1 for Python > 3.6 Co-authored-by: mrbean-bremen <mrbean-bremen@users.noreply.github.com> 08 December 2021, 19:32:53 UTC
b70140a Add some missing methods to FakePipeWrapper - add readable, writable and seekable - see #650 03 December 2021, 17:39:13 UTC
38a5589 Use AnyPath instead of AnyString in create_file and add_real_file - fixes #648 24 November 2021, 20:35:18 UTC
184a9e7 Mention libraries depending on subprocess in limitations - see #649 for GitPython and #493 for plumbum 16 November 2021, 20:28:50 UTC
f17fc6f Release 4.5.3 - adapt release notes 08 November 2021, 20:02:55 UTC
b9df036 Make randomizing of listdir results optional - the default is to not randomize - can be changed by setting fs.shuffle_listdir_results to True - see #647 08 November 2021, 19:36:11 UTC
c0aebec Release 4.5.2 - this is a bugfix release 07 November 2021, 16:54:10 UTC
90dbff3 Add basic patching of fcntl module - all fcntl functions are implemented empty 07 November 2021, 14:44:17 UTC
81ac8d7 Use released Python 3.10 in CI test - do not exclude tests with Python 3.10 30 October 2021, 10:50:31 UTC
5f8f0e8 Make sure nothing is changed if a rename failed - rename is implemented via remove/add, a failed add shall revert the remove - see #643 30 October 2021, 10:39:27 UTC
c81445c Update pandas to 1.3.4 (#641) * Update pandas from 1.3.3 to 1.3.4 18 October 2021, 05:38:23 UTC
589bae0 setup.cfg: Replace dashes with underscores Setuptools v54.1.0 introduces a warning that the use of dash-separated options in 'setup.cfg' will not be supported in a future version [1]. Get ahead of the issue by replacing the dashes with underscores. Without this, we see 'UserWarning' messages like the following on new enough versions of setuptools: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Signed-off-by: Arthur Zamarin <arthurzam@gmail.com> 13 October 2021, 18:09:22 UTC
83f5344 Randomize list order for FakeFilesystem.listdir - makes the output order for os.listdir, `os.scandir` and `pathlib.Path.listdir` random - see #638 23 September 2021, 14:56:47 UTC
dfda25a Update openpyxl from 3.0.8 to 3.0.9 22 September 2021, 15:52:53 UTC
e633219 Update pandas to 1.3.3 (#636) * Update pandas from 1.3.1 to 1.3.3 13 September 2021, 04:53:45 UTC
386bc02 Update openpyxl from 3.0.7 to 3.0.8 11 September 2021, 06:02:48 UTC
ae549f3 Change 'is windows_fs' to 'is_windows_fs' 08 September 2021, 20:29:50 UTC
e06472b Fixed handling of alternative path separator in some functions - affects os.path.split(), os.path.splitdrive() and glob.glob() - fixes #632 01 September 2021, 18:31:43 UTC
7419c61 Release 4.5.1 - adapt release notes 29 August 2021, 18:39:23 UTC
ff786ff Add documentation for problems with pyfakefs and mock_open - see #631 29 August 2021, 18:06:41 UTC
c403e3d Fix handling of use_known_patches=False - used to cause an exception 29 August 2021, 17:35:28 UTC
ca9a356 Handle pathlib.Path.owner() and pathlib.Path.group() - return the current user/group name under Posix - raises NotImplementedError under Windows - fixes #629 27 August 2021, 14:12:56 UTC
f4aac8e Do not import pandas and related modules if it is not patched - see #627 04 August 2021, 17:18:17 UTC
49d4201 Skip failing tests on systems with ASCII locale - closes #623 27 July 2021, 17:47:32 UTC
29b5682 Make sure the tested file descriptors are out of valid range - tests failed in a specific build where the fds seemed to be existing 27 July 2021, 15:17:08 UTC
492efac Update pandas to version 1.3.1 for Python > 3.6 27 July 2021, 15:17:08 UTC
4ff6523 Add type hints to fake_filesystem_unittest - see #599 15 July 2021, 18:09:37 UTC
dfa0262 Add type hints for more classes - includes FakeFileOpen and all file wrapper classes - see #599 06 July 2021, 06:39:36 UTC
d75703c Add type hints to more fake classes - includes FakeOsModule, FakePathModule and FakeIoModule - fix a couple of str/bytes inconsistencies 26 June 2021, 10:03:30 UTC
403b035 Fix a few resource warnings in test 24 June 2021, 14:16:36 UTC
a0af679 Deprecate all warnings while inspecting loaded modules - fixes #614 24 June 2021, 14:16:36 UTC
9673a00 Require Python >= 3.6 pyfakefs 4.5 removed support for Python 3.5, but the python_requires metadata was not updated to reflect this, which means that pyfakefs can be installed in a Python 3.5 environment but will not run correctly. 21 June 2021, 20:28:13 UTC
3362258 Add type annotations to FakeFilesystem class (#607) - fix some str/bytes problems - add missing handling for path-like in some os functions - see #601 14 June 2021, 18:25:10 UTC
2f54cd0 Add step to find test dependencies - see #608 13 June 2021, 10:08:06 UTC
c8b2b2e Skip test_mknod_raises_if_unsupported_options for real fs - tested started failing in CI with ubuntu-20.04, version 20210606.1 - may check later if this is a persistent change or a bug 10 June 2021, 18:13:41 UTC
df35f93 Add example for alias for fs fixture (#610) - see #609 10 June 2021, 15:17:06 UTC
7d233aa Make sure mocked time and float time are reset - avoids test dependencies, see #608 08 June 2021, 20:34:18 UTC
206e75d Refactor time mocking to use standard mock - see #608 06 June 2021, 13:44:33 UTC
4bf5a4a Account for possible low-resolution timer in file time tests - see #608 05 June 2021, 18:02:06 UTC
28d3089 Release 4.5.0 - adds some support for Python 3.10 and basic type checking 04 June 2021, 18:04:47 UTC
87eaba8 Fix UNC path handling - correctly handle UNC paths in os.path.split - fix directory path evaluation for UNC paths - fixes #606 03 June 2021, 17:30:10 UTC
40e695e Remove support for Python 3.5 - Python 3.5 had EOL 09/2020, and had already been removed from CI tests - Python 3.5 does not fully support typing - some minor usage documentation fixes 24 May 2021, 07:01:47 UTC
8366384 Add mypy checks to CI - see #599 23 May 2021, 10:16:12 UTC
86f34f3 Add type checking (#601) * Add basic mypy configuration file * Move setters next to getters (see https://github.com/python/mypy/issues/1465) * Fix open modes namedtuple name consistency * Fix fake file size mypy errors * Ignore missing attributes of pathlib, ignore invalid type for parent * Fix pure path parent type * Ignore module spec type error * Add some patcher class attribute annotations * Add setup.py annotations 23 May 2021, 05:11:09 UTC
02cb1ee Add support for some Python 3.10 changes - new strict argument for os.path.realpath() - new follow_symlinks argument for pathlib.Path.chmod() - new method pathlib.Path.hardlink_to - new 'newline' argument in pathlib.Path.write_text() 17 May 2021, 06:01:52 UTC
a8a70bb Add support for Python 3.10 beta1 (#594) - add Python 3.10-beta1 to CI - adapt fake pathlib, fix pathlib.Path methods link_to, getcwd, lchmod - handle dummy encoding "locale" introduced in Python 3.10 - do not test extra dependencies with Python 3.10 (some are not available) 14 May 2021, 05:44:45 UTC
8ed31b7 Move docker tests to separate workflow - do not run them on PR builds - see #596 13 May 2021, 19:18:56 UTC
53ef207 Fix handling of byte strings in some os.path functions - includes exists(), isfile(), islink(), isdir() and ismount() - fixes #595 - comment docker tests (handled in another issue) 13 May 2021, 19:18:56 UTC
05925ab Run GitHub actions on pull requests 10 May 2021, 18:19:16 UTC
f0d4018 Do not import pathlib2 as pathlib if available - pathlib2 is now considered to have the same functionality as pathlib - fixes broken new pathlib functionality if pathlib2 is installed - see #592 05 April 2021, 13:05:05 UTC
15c3522 Update openpyxl from 3.0.6 to 3.0.7 10 March 2021, 18:01:38 UTC
9930832 Prepare next release 24 February 2021, 20:36:32 UTC
efd90e7 Fix os.file for unreadable files - set regular file mode if none set in FakeFile st_mode arg - add convenience permission argument to create_file() - fixes #588 24 February 2021, 19:16:56 UTC
40416a1 Remove @DeprecationWarning as it isn't a decorator `tearDownPyfakefs` is a no-op legacy API, it was given @DeprecationWarning as a decorator... which broke it rather than making it a no-op callable as that isn't a decorator. This fixes: ``` self.tearDownPyfakefs() TypeError: 'DeprecationWarning' object is not callable ``` in code updating to a modern pyfakefs that still calls it. 11 February 2021, 16:15:16 UTC
518ab38 Add support for pathlib.Path.readlink (new in Python 3.9) - fixes #584 03 February 2021, 19:32:36 UTC
b4e08dd Add non-functional argument "effective_ids" to "os.access()"` - fixes #585 03 February 2021, 18:09:44 UTC
031b3c8 Update openpyxl from 3.0.5 to 3.0.6 28 January 2021, 20:21:41 UTC
77cf077 Add workflow for automatic documentation build / commit - add license to setup.py for "setup.py show" to show it 28 January 2021, 20:16:36 UTC
3b54026 Add running python setup.py test to CI tests - may catch additional problems, see #581 10 January 2021, 17:46:35 UTC
875c500 Fix handling of pipe file descriptors in fake fs - see #581 10 January 2021, 13:31:21 UTC
7311044 Skip test_open_existing_pipe test under pytest - does not work under pytest, see #581 - skip temporary until fixed 10 January 2021, 10:15:00 UTC
20ed320 Do not remove pathlib.Path.link_to if pathlib2 is installed - will fail if pathlib2 is used a in real - see #580 02 January 2021, 18:01:52 UTC
846ec97 Add support for pathlib.link_to since Python 3.8 - add convenience method FakeFilesystem.create_link() - closes #580 31 December 2020, 15:16:07 UTC
3bc6f0c Release 4.3.3 20 December 2020, 15:50:26 UTC
8d11009 Exclude performance tests from MacOS builds - times are shaky, maybe due to current maintenance 17 December 2020, 21:07:09 UTC
0ba2e0e Add test for checking the setup time - run performance tests only if configured per env var - times are taken from current CI tests with some margin - safeguard against performance degradation in setup 17 December 2020, 20:59:23 UTC
61ad750 Simplify IO buffer class - now uses io.BytesIO and io.TextIOWrapper almost unchanged 13 December 2020, 19:31:48 UTC
5eac108 Adapt some tests that may fail under Windows - make sure links are mot tested if not available - allow different behavior of atime for some use cases 13 December 2020, 11:05:51 UTC
c1e3af7 Change IO to use TextIOWrapper for text - makes it easier to handle text, conforms better to real behavior (the old code that handled it manually was needed for Python 2) - fixes #574 12 December 2020, 20:17:56 UTC
5b581b0 Pin xlrd to latest version 1.2.0 07 December 2020, 20:19:43 UTC
ba0cfdc Pin openpyxl to latest version 3.0.5 07 December 2020, 19:51:08 UTC
154b16f Pin pandas to latest version 1.1.5 07 December 2020, 18:27:40 UTC
back to top