Added support for path-like objects in Python 3.6 - #3
Closed
mrbean-bremen wants to merge 10 commits into
Closed
Conversation
- added default .pylintrc with changes for function and method names used in pyfakefs
- added implementation and test for fake pathlib - moved some functionality from FakeOsModule to FakeFilesystem to be able to use it from fake pathlib - added follow_symlinks argument to to some funxtions in FakeOsModule (stat, chmod, chown, access, utime) - added replace() and lchmod() - fixes pytest-dev#29
- increased max line length to 100 to avoid too many warnings - removed invalid pylint codes, replaced pylint codes with names for better readability - adapted release notes
- added support for context manager in scandir iterator (used in pathlib and glob) - fixed incorrect usage of random generator in fake_tempfile - added Python 3.6 in Travis CI
- many functions in 3.6 can take a path-like object, which can be transformed to a path by os.fspath()
- added tests for most faked functions that accepts a path-like object in 3.6 - adapted the code respectively by calling os.fspath() where needed - added getatime() and getctime() to fake os module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
in 3.6