https://github.com/jmcgeheeiv/pyfakefs

sort by:
Revision Author Date Message Commit Date
3b1a99a Avoid EncodingWarning occurring in tests - we have switched the warnings on, so we try to avoid them as much as possible in our own tests - use utf8 encoding in all tests with no explicit encoding 04 April 2024, 18:11:21 UTC
28a8f41 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.4...v0.3.5) 02 April 2024, 06:01:34 UTC
582abdf [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.3.3 → v0.3.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.3...v0.3.4) 26 March 2024, 05:34:59 UTC
0b81b69 Update pre-commit from 3.6.2 to 3.7.0 25 March 2024, 05:29:58 UTC
0805291 Fix behavior of fake os.makedirs - use a similar implementation as the real fs 20 March 2024, 21:32:24 UTC
7285b67 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.3.2 → v0.3.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.2...v0.3.3) - [github.com/PyCQA/autoflake: v2.3.0 → v2.3.1](https://github.com/PyCQA/autoflake/compare/v2.3.0...v2.3.1) 18 March 2024, 22:50:06 UTC
47d2d92 Correctly handle closing a file descriptor - could have closed the wrong fd - fixes #988 17 March 2024, 09:44:33 UTC
a1210c9 Fix incorrect exception on opening non-existing directory - fixes #986 17 March 2024, 09:44:33 UTC
071b548 Add support for fake os.dup, os.dup2 and os.lseek - closes #970 16 March 2024, 17:28:22 UTC
a1621df Fix handling of umask - umask is now applied per default 16 March 2024, 11:26:06 UTC
5283be6 Fix permission handling for opening file via file descriptor - fixes #967 16 March 2024, 09:40:23 UTC
c3a1cc8 Remove the need to import the "undefined" module in test - the module is not maintained and very trivial 15 March 2024, 17:54:03 UTC
816d114 Fix problem with shutil.rmtree if emulating Windows under POSIX - the fd functions that are used for rmtree are not available under Windows -> switched of the usage of these function in the fake fs - fixes #979 14 March 2024, 19:21:38 UTC
67e3a56 Fix handling of missing attribute in os.getxattr - no tests for real OS (extended atributes not enabled in CI) - fixes #971 13 March 2024, 20:34:44 UTC
9e62889 [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci 13 March 2024, 03:59:59 UTC
7c24dcd [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.3.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.3.2) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) 13 March 2024, 03:59:59 UTC
0466bbd Add support for O_DIRECTORY and O_NOFOLLOW flags - flags are considered in os.open if present 12 March 2024, 21:57:33 UTC
c4edbcb Add missing follow_symlink argument to os.link - fixes #973 12 March 2024, 20:27:12 UTC
190390f Fix incorrect handling of dirfd in os.symlink - also removed check for supported dirfd where not used - changed dirfd tests to run both in the fake and real OS - fixed #968 10 March 2024, 19:46:43 UTC
ebbaa73 Make sure the temp directory can be created during fs reset We cannot use the `tempdir` module to get the temp directory at that point, if the root dir is not writable by all. This is a consequence of the fixes fo file permission handling. 09 March 2024, 15:17:38 UTC
962648e Troubleshooting guide: add dynamic patcher problem handling - add basic description of the module cleanup hooks 07 March 2024, 18:27:12 UTC
2551f7b Remove the "module_cleanup_mode" argument from Patcher - had been introduced in the previous patch release as a stop-gap measure for problems with django - superseded by module cleanup handlers 07 March 2024, 09:11:18 UTC
99a8a2d Add chapter about nested fake filesystems to troubleshouting guide 06 March 2024, 08:35:18 UTC
be19d4a Correctly handle file permissions for different classes - always consider the current user group while evaluating file permissions for user/group/other classes 06 March 2024, 08:16:24 UTC
dd5d1af Use locale.getencoding instead of getpreferredencoding - from Python 3.11 on, this is the preferred version - fixes #957 03 March 2024, 12:59:16 UTC
bf39aa3 Replace black and flake 8 with ruff - adapt formatting where needed 26 February 2024, 19:25:06 UTC
5c44c64 Use cleanup hook to reload django views - reload only the django view modules instead of all modules - change the module cleanup mode default to always delete modules (avoiding problems with reloading other modules) - closes #932 25 February 2024, 18:42:23 UTC
c4df67d Add possibility to add a cleanup hook to modules - may be needed for modules that cannot cleanly reload - used for pandas.core.arrays.arrow.extension_types, see #947 25 February 2024, 08:35:01 UTC
7f6bb1e Update pandas from 2.2.0 to 2.2.1 23 February 2024, 19:02:38 UTC
d5c6219 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/autoflake: v2.2.1 → v2.3.0](https://github.com/PyCQA/autoflake/compare/v2.2.1...v2.3.0) 20 February 2024, 05:27:20 UTC
0b8c4a1 Update pre-commit from 3.6.1 to 3.6.2 19 February 2024, 04:40:33 UTC
4404c50 Fix some documentation examples - add needed imports - fix a few incorrect tests 14 February 2024, 07:53:27 UTC
56e5911 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 24.1.1 → 24.2.0](https://github.com/psf/black/compare/24.1.1...24.2.0) 13 February 2024, 06:29:02 UTC
ea7b7b3 Update pre-commit from 3.6.0 to 3.6.1 11 February 2024, 05:29:53 UTC
0df153a Add a version note about the global pathlib Path problem - it happens only up to Python 3.10 - see #943 06 February 2024, 19:30:41 UTC
90505c8 Release 5.3.5 - fixes a regression 30 January 2024, 18:05:06 UTC
bdaca74 Introduce and use new argument "module_cleanup_mode" - fixes a regression due to the changed behavior of the dynamic patcher cleanup The modules are now reloaded only if the django module is loaded, or the reload mode set to RELOAD. 30 January 2024, 17:56:53 UTC
01e6dee [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci 29 January 2024, 21:46:15 UTC
54cb597 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) 29 January 2024, 21:46:15 UTC
4be302b Bump actions/cache from 3 to 4 Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 22 January 2024, 04:39:40 UTC
d4633a8 Include tox.ini into the source distribution - also add mypy.ini and the requirements files - see #937 20 January 2024, 19:41:29 UTC
5b4d241 Update pandas from 2.1.4 to 2.2.0 20 January 2024, 09:30:34 UTC
51e5a0a Release 5.3.4 - bugfix release (supersedes 5.3.3, which had an incomplete fix) 19 January 2024, 17:56:45 UTC
62369f7 Add back argument use_dynamic_patch - can be used for cases where dynamic patching causes problems 19 January 2024, 13:33:25 UTC
fb97b62 Reload modules loaded dynamically during test - modules loaded dynamically are now reloaded instead of deleted; deleting them caused some unexpected behavior in django - if reloading failed delete the module as last ressort 12 January 2024, 19:10:57 UTC
51d26de [pre-commit.ci] pre-commit autoupdate (#931) * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) - fix newly found flake8 warning --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: mrbean-bremen <hansemrbean@googlemail.com> 09 January 2024, 19:47:19 UTC
383bf9c [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.12.0 → 23.12.1](https://github.com/psf/black/compare/23.12.0...23.12.1) - [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0) 25 December 2023, 21:52:59 UTC
4e52776 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.11.0 → 23.12.0](https://github.com/psf/black/compare/23.11.0...23.12.0) 19 December 2023, 06:42:57 UTC
a3e48c0 Add example for handling pytz timezones - see #926 18 December 2023, 18:43:40 UTC
1ad9158 Handle unhashable modules - caused exception while scanning modules - fixes #923 17 December 2023, 19:00:02 UTC
d17e190 Update pre-commit from 3.5.0 to 3.6.0 10 December 2023, 06:57:22 UTC
ecd5314 Bump actions/setup-python from 4 to 5 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 08 December 2023, 19:39:54 UTC
ea0db45 Update pandas from 2.1.3 to 2.1.4 08 December 2023, 19:39:32 UTC
6b6b717 Add dependabot config for GH actions 08 December 2023, 19:04:11 UTC
d5beca7 Release 5.3.2 - bugfix release 30 November 2023, 18:32:57 UTC
cd3dc82 Use hookwrapper to pause patching during logreport - shall fix #904 more reliably 28 November 2023, 19:53:53 UTC
bbb7ad6 Fix result of os.walk with a path-like top directory - used to return a Path object for the top dir instead of a string - fixes #915 28 November 2023, 19:25:38 UTC
d48dc21 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-mypy: v1.7.0 → v1.7.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.0...v1.7.1) 27 November 2023, 22:22:03 UTC
95b2de3 Fix separator mismatch with Linux emulated under Windows - the tempfile module will access the temp path using Windows separators under Windows, even if emulating Posix - this had to be handled - fixes #912 25 November 2023, 20:01:43 UTC
211c0ce Use a separate fake module for _io - in Python 3.12, _io is not a simple alias for io - fixes #910 19 November 2023, 15:12:55 UTC
8c7a99c Release 5.3.1 - mostly a bugfix release 15 November 2023, 19:15:44 UTC
1d52e3f Replace setattr and getattr calls with __dict__ manipulations (#905) - fixes problems with custom setattr__ implementations like pytorch 15 November 2023, 18:13:48 UTC
c4444e4 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0) - [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.1...v1.7.0) 14 November 2023, 06:46:11 UTC
73fb5d2 Make sure that pyfakefs is not active during pytest reporting - pause the patching in pytest_runtest_logreport - fixes #904 13 November 2023, 18:09:17 UTC
26ed458 Allow merging real with fake directories - changed behavior of add_real_directory() to be able to map a real directory to an existing directory in the fake filesystem - fixes #901 13 November 2023, 18:08:22 UTC
6a022c3 Update pandas from 2.1.2 to 2.1.3 12 November 2023, 13:42:50 UTC
98f2735 Update pandas from 2.1.1 to 2.1.2 27 October 2023, 04:05:59 UTC
cc75310 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.9.1 → 23.10.1](https://github.com/psf/black/compare/23.9.1...23.10.1) - [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.6.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.0...v1.6.1) 23 October 2023, 22:22:39 UTC
238311c [pre-commit.ci] pre-commit autoupdate (#898) updates: - [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.6.0) - Ignore type-var mypy errors for now --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: mrbean-bremen <hansemrbean@googlemail.com> 17 October 2023, 18:14:18 UTC
22ee0db Update pre-commit from 3.4.0 to 3.5.0 13 October 2023, 19:07:07 UTC
7466498 Release 5.3.0 - adds official support for Python 3.12 11 October 2023, 18:28:06 UTC
33d8b1b [pre-commit.ci] pre-commit autoupdate (#895) * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) * Lower sensitivity for access time tests --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: mrbean-bremen <hansemrbean@googlemail.com> 10 October 2023, 19:34:51 UTC
567480c Add patching getcwd/getcwdb for nt - fixes Windows problem if called from fspath, if the real current drive is not C: - fixes test for #892 under Windows 10 October 2023, 17:46:29 UTC
4e99991 Fix patching open for Python 3.12 - add patching _io, as this is used for io - add workaround for calling the real open_code (does not work yet under Windows) - add Python 3.12 to supported Python versions - fixes #836 09 October 2023, 17:05:51 UTC
ba4f217 Fix pathlib.Path.mkdir() with unmounted path - automount drive or UNC path under Windows if needed in FakeFilesystem.makedir() (used by Path.mkdir) - fixes #890 08 October 2023, 09:17:29 UTC
76c274f Ignore more pytest warnings - pytest seems not to knoe about NoReturn 06 October 2023, 19:00:36 UTC
b63d6f6 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.2.6) 06 October 2023, 19:00:36 UTC
75c02c9 Update pandas to 2.1.1 (#888) * Update pandas from 2.1.0 to 2.1.1 * Add another pytype suppression --------- Co-authored-by: mrbean-bremen <hansemrbean@googlemail.com> 21 September 2023, 18:05:23 UTC
ca0eeb6 Exclude extra packages tests for pypy-3.10 - numpy wheels for that version seem to have been yanked - update checkout action version 20 September 2023, 17:10:48 UTC
d0f3e6a Add a note about setUpClassPyfakefs usage - if used with pytest, pytest >= 6.2 is needed - also remove obsolete Python 3.6 references 20 September 2023, 17:10:48 UTC
7b9b62f [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1) 12 September 2023, 10:18:18 UTC
79f4a52 Add back support for Python 3.7 - too early to drop it - disable failing tests for Python 3.7 (expanduser() and home() behave slightly different in 3.7) 07 September 2023, 17:53:48 UTC
1f2bcc9 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/autoflake: v2.2.0 → v2.2.1](https://github.com/PyCQA/autoflake/compare/v2.2.0...v2.2.1) 05 September 2023, 08:56:19 UTC
a491d6a Update pre-commit from 3.3.3 to 3.4.0 02 September 2023, 20:53:49 UTC
7939304 Update pandas to 2.1.0 (#878) * Update pandas from 2.0.3 to 2.1.0 * Pin pandas version for Python 3.8 --------- Co-authored-by: mrbean-bremen <hansemrbean@googlemail.com> 01 September 2023, 18:40:29 UTC
6a0d13a Remove note about potential change of "patch_open_code" - this note is now obsolete - closes #876 28 August 2023, 16:50:47 UTC
48608b4 Removed extra create_file from troubleshooting snippet (#875) * Removed extra create_file from troubleshooting snippet * Fixed wording from type to attributes * Removed pytest.mark.usefixtures usage as it distracted from point 26 August 2023, 19:06:39 UTC
0472d41 Simplifying `pathlib.Path` troubleshooting snippet (#874) * Simplifying pathlib.Path snippet for explaining path differences 26 August 2023, 17:07:32 UTC
e7ccd8c Add some API links to the usage documentation - mention the return value of create_x methods more prominently - add a note about global pathlib.Path objects to the troubleshooting section 26 August 2023, 16:35:15 UTC
979a878 Remove support for EOL Python 3.7 24 August 2023, 18:02:18 UTC
4ea3c5f Fix tests if HOME environment is missing - fixes #870 24 August 2023, 18:02:18 UTC
fddbd91 Remove debug output accidentally left in - fixes #869 24 August 2023, 18:02:18 UTC
b8ef232 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/blacken-docs: 1.15.0 → 1.16.0](https://github.com/asottile/blacken-docs/compare/1.15.0...1.16.0) - [github.com/pre-commit/mirrors-mypy: v1.4.1 → v1.5.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.4.1...v1.5.1) 22 August 2023, 08:45:46 UTC
1d8b586 Release 5.2.4 - fixes a rare problem on pytest shutdown 18 August 2023, 19:51:05 UTC
cc67e1e Clear fs cache on session finish - avoids problems with cached modules during session shutdown - see #866 18 August 2023, 19:16:07 UTC
841face Add now required ReadTheDocs config file 15 August 2023, 17:24:17 UTC
4fddfa3 [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0) - fixed flake8 finding 01 August 2023, 17:49:45 UTC
1c3e006 Fix typos and add `codespell` hook to pre-commit (#862) - found via `codespell -L wronly,afile` - add `codespell` hook to pre-commit 14 July 2023, 20:49:18 UTC
42effec [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0) - [github.com/asottile/blacken-docs: 1.14.0 → 1.15.0](https://github.com/asottile/blacken-docs/compare/1.14.0...1.15.0) 11 July 2023, 07:15:36 UTC
a053b35 Release 5.2.3 - adds compatibility with PyPy 3.10 and Python 3.12 10 July 2023, 17:33:16 UTC
back to top