Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for path-like objects in Python 3.6 #3

Closed
wants to merge 10 commits into from

Conversation

mrbean-bremen
Copy link
Owner

  • 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

mrbean-bremen and others added 10 commits November 3, 2016 21:49
- 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
@mrbean-bremen mrbean-bremen deleted the python3.6 branch November 11, 2016 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant