aboutsummaryrefslogtreecommitdiff
path: root/pyfakefs
AgeCommit message (Collapse)Author
2023-07-09Adapt to work with pypy 3.10mrbean-bremen
- adapt to some changed behavior - add another SKIPMODULE for pytest - add tests for more pypy versions - see #859
2023-06-29Add py.typed marker file (as defined by PEP 561) (#848)Jean-Frédéric Gauron
2023-06-11Use pytest.mark.usefixtures in code snippetmrbean-bremen
- avoids linter warning about unused argument - closes #834
2023-06-11Adapt fake shutil to changes in Python 3.12 beta2mrbean-bremen
- patch away a Windows-specific optimization in shutil.copy2 to avoid calling the Windows API - fixes #841
2023-05-30Adapt to changes in Python 3.12 beta1 (#835)mrbean-bremen
- distutils has been removed - variable renamed in pathlib - add workaround for patching open, comment out not working tests - hopefully fixes #830 and #831
2023-05-17Exclude pytest pathlib module from patching (#828)mrbean-bremen
- fixes some specific tests in namespace packages - fixes #814
2023-05-03Add pytype CI and pytype ignore comments where needed (#824)mrbean-bremen
- add pytype ignores where needed to silence pytype - fix a few problems found by pytype - add pytype run in CI (excluding tests)
2023-04-23Re-create the temp directory on resetting the filesystem (#818)mrbean-bremen
* Re-create the temp directory on resetting the filesystem - the temp dir is now created during filesystem initialization instead of at patcher setup if configured - this is only done by default if created from the Patcher - fixes #814 * Call reset() from __init__ - change from review
2023-04-13Make sure a /tmp path exists under linuxmrbean-bremen
- TMPDIR may point elsewhere - fixes #810
2023-04-13Add attribute access for some moved constants back to fake_filesystemmrbean-bremen
- some if these had been accessed in user code, which caused a regression - add convenience function get_uid()/get_gid() - see #809
2023-04-11Adapt fake pathlib to changes in Python 3.12a7mrbean-bremen
- stat.st_ctype is deprecated under Windows in 3.12 on, comment out the tests for the time being (support for st_birthdate to be added)
2023-04-03Set the os.supports_xxx properties for the fake filesystemmrbean-bremen
- return the faked functions instead of the real ones - fixes #799
2023-03-31Release 5.2.0mrbean-bremen
- supports current Python 3.12 version (alpha 6)
2023-03-30Add support for current Python 3.12mrbean-bremen
- adapt for changed pathlib implementation (removed flavour implementation) - Windows: add patching for some os.path functions now implemented in nt instead of ntpath - fix handling of devnull for changed OS - add fake implementation for os.path.splitroot - fixes #770
2023-03-15Remove engine overwrite in pandas TextFileReader patch (#791)Satyarth Agrahari
* remove patching of TextFileReader for pandas for version >= 1.2
2023-03-10Create /tmp symlink to temp dir under macOSmrbean-bremen
- always exists to conform to the POSIX standard in the real fs - do not add the used space for the link for test convenience - see #790
2023-02-27Split out fake modules into extra filesmrbean-bremen
- should be mostly backwards compatible
2023-02-23Fix warning from new flake8 versionmrbean-bremen
2023-02-07[pre-commit.ci] pre-commit autoupdate (#780)pre-commit-ci[bot]
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0) - [github.com/PyCQA/autoflake: v2.0.0 → v2.0.1](https://github.com/PyCQA/autoflake/compare/v2.0.0...v2.0.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
2023-01-24Add "force_unix_mode" flag to FakeFilesystem.chmodmrbean-bremen
- makes it possible to simulate inaccessible paths under Windows - see #720
2023-01-12Release 5.1.0mrbean-bremen
2022-12-30Disable test for non-standard platformsmrbean-bremen
- the specific test may fail under non-Linux *nix systems due to different pipe implementations - fixes #768
2022-12-22Add Python 3.12 to the test suite (#764)Bruno Alla
* Mark Python 3.12 as experimental * Add is_junction method to DirEntry class on Python 3.12 * Implement stub functions for os.path.isjunction() (always return False) * Skip extra deps tests for Python 3.12
2022-12-08Add setUpClassPyfakefs convenience methodmrbean-bremen
- only available from Python 3.8 onwards - also add class-scoped 'fs_class' fixture - handle patcher for doc tests separately
2022-11-29[pre-commit.ci] pre-commit autoupdate (#753)pre-commit-ci[bot]
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) - [github.com/PyCQA/autoflake: v1.7.7 → v2.0.0](https://github.com/PyCQA/autoflake/compare/v1.7.7...v2.0.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0) * Fix flake8 warning Co-authored-by: mrbean-bremen <mrbean-bremen@users.noreply.github.com>
2022-11-17[pre-commit.ci] pre-commit autoupdate (#748)pre-commit-ci[bot]
* [github.com/pre-commit/mirrors-mypy: v0.982 → v0.990](https://github.com/pre-commit/mirrors-mypy/compare/v0.982...v0.990) * fix findings from new mypy version Co-authored-by: mrbean-bremen <hansemrbean@googlemail.com>
2022-11-01Add black formatting to pre-commitmrbean-bremen
- adapt to black formatting style using auto-black: * replace single with double quotes * use 88 character maximum line length * some changes in line breaks - add pre-commit.ci batch - mention pre-commit in contributing guide - closes #733
2022-10-16Add pre-commit configuration (#734)mrbean-bremen
- auto-fixed whitespace problems - fixed a few flake8 warnings - remove flake8 and mypy run from workflow (will be done by pre-commit CI) - add pre-commit badge
2022-10-09Fix release-deploy actionmrbean-bremen
- prepare next release
2022-10-09Release 5.0.0mrbean-bremen
- new version after the transfer to pytest-dev
2022-10-09Move documentation from GH Pages to Read the Docsmrbean-bremen
2022-10-08Remove long deprecated old APImrbean-bremen
- also removed deprecated copyRealFile method - will be released as version 5.0.0
2022-10-08Update documentation after transfer to pytest-devmrbean-bremen
- also adapt after renaming master to main branch
2022-10-04Fix handling of read permissionsupstream-mastermrbean-bremen
- rmdir and chmod work without permission if the file user ID is the current user ID - better handle owner/group/other permission bits - fixes #719
2022-10-02Add some support for st_blocks in stat resultmrbean-bremen
- closes #722
2022-10-02Fix handling of O_TMPFILE flag in os.openmrbean-bremen
- the check for the flag was incorrect - change PyPy version in CI to 3.7 - fixes #723
2022-09-30Minor documentation changesmrbean-bremen
- remove link to pyfakefs.org - make pytest more prominent
2022-09-18Release 4.7.0mrbean-bremen
- remove pyfakefs 3.3 documentation - prepare next release
2022-09-17Add missing support for os.renamesmrbean-bremen
- fixes #714
2022-09-04Do not skip filesystem modules by namemrbean-bremen
- allows using own modules with the same name - fixes #708
2022-08-27Return the expected type from fcntl.ioctl and fcntl.fcntlmrbean-bremen
- if 'arg' is of type byte, the return value should also be 'byte' - the actual command is ignored as before
2022-08-25Do not allow nested fixturesmrbean-bremen
- nested fixtures will reference the outer fixture
2022-08-08Add support for path-like objects in shutil.disk_usagemrbean-bremen
- fixes #699
2022-07-25Do not use the build-in opener in pathlibmrbean-bremen
- it may use a cached accessor instead of the fake one
2022-07-23Revert some performance optimizationsmrbean-bremen
- have been made in version 3.3.0, apparently cause hanging tests with torch import - no performance degradation detected - see #693
2022-07-20Automatically reset filesystem on changing osmrbean-bremen
- now done on changing is_windows_fs or is_macos
2022-07-20Fix handling of Windows drive as root pathmrbean-bremen
- was always detected as existing - caused part of #692
2022-07-14Remove test that causes errors in test shutdownmrbean-bremen
- using fs_module can cause such errors with some combinations of tests - should fix #687
2022-07-14Fix newly introduced support for opener argument in openmrbean-bremen
- the wrong argument had been passed - fixes #689
2022-07-13Add fs_module to conftest.py for plugin testsmrbean-bremen
- remove installing pyfakefs from CI - fixes #687