Nekmo / amazon-dash

Hack your Amazon Dash to run what you want.
MIT License
828 stars 67 forks source link

Update pyfakefs to 3.5 #101

Closed pyup-bot closed 6 years ago

pyup-bot commented 6 years ago

This PR updates pyfakefs from 3.3 to 3.5.

Changelog ### 3.5 ``` Changes * This version of pyfakefs does not support Python 3.3. Python 3.3 users must keep using pyfakefs 3.4.3, or upgrade to a newer Python version. * The deprecation warnings for the old API are now switched on by default. To switch them off for legacy code, use: python from pyfakefs.deprecator import Deprecator Deprecator.show_warnings = False New Features * Improved automatic patching: * automatically patch methods of a patched file system module imported like `from os.path import exists` ([443](../../pull/443)) * a module imported as another name (`import os as _os`) is now correctly patched without the need of additional parameters ([434](../../pull/434)) * automatically patch `Path` if imported like `from pathlib import Path` ([440](../../issues/440)) * parameter `patch_path` has been removed from `UnitTest` and `Patcher`, the correct patching of `path` imports is now done automatically ([429](../../pull/429)) * `UnitTest` /`Patcher` arguments can now also be set in `setUpPyfakefs()` ([430](../../pull/430)) * added possibility to set user ID ([431](../../issues/431)) * added side_effect option to fake files ([433](../../pull/433)) * added some support for extended filesystem attributes under Linux ([423](../../issues/423)) * handle `contents=None` in `create_file()` as empty contents if size not set ([424](../../issues/424)) * added pathlib2 support ([408](../../issues/408)) ([422](../../issues/422)) * added support for null device ([418](../../issues/418)) * improved error message for "Bad file descriptor in fake filesystem" ([419](../../issues/419)) Fixes * fixed pytest when both pyfakefs and future are installed ([441](../../issues/441)) * file timestamps are now updated more according to the real behavior ([435](../../issues/435)) * fixed a problem related with patching shutil functions using zipfile ([427](../../issues/427)) ``` ### 3.4.3 ``` This is mostly a bug fix release, mainly for bugs found by [agroce](https://github.com/agroce) using [tstl](https://github.com/agroce/tstl). New Features * added support for path-like objects as arguments in `create_file()`, `create_dir()`, `create_symlink()`, `add_real_file()` and `add_real_directory()` (Python >= 3.6, see [409](../../issues/409)) Infrastructure * moved tests into package * use README.md in pypi ([358](../../issues/358)) Fixes * `tell` after `seek` gave incorrect result in append mode ([363](../../issues/363)) * a failing pytest did not display the test function correctly ([381](../../issues/381)) * flushing file contents after truncate was incorrect under some conditions ([412](../../issues/412)) * `readline()` did not work correctly in binary mode ([411](../../issues/411)) * `pathlib.Path.resolve()` behaved incorrectly if the path does not exist ([401](../../issues/401)) * `closed` attribute was not implemented in fake file ([380](../../issues/380)) * `add_real_directory` did not behave correctly for nested paths * the following functions did not behave correctly for paths ending with a path separator (found by agroce using [tstl](https://github.com/agroce/tstl)): * `os.rename` ([400](../../issues/400)) * `os.link` ([399](../../issues/399), [407](../../issues/407)) * `os.rmdir` ([398](../../issues/398)) * `os.mkdir`, `os.makedirs` ([396](../../issues/396)) * `os.rename` ([391](../../issues/391), [395](../../issues/395), [396](../../issues/396), [389](../../issues/389), [406](../../issues/406)) * `os.symlink` ([371](../../issues/371), [390](../../issues/390)) * `os.path.isdir` ([387](../../issues/387)) * `open` ([362](../../issues/362), [369](../../issues/369), [397](../../issues/397)) * `os.path.lexists`, `os.path.islink` ([365](../../issues/365), [373](../../issues/373), [396](../../issues/396)) * `os.remove` ([360](../../issues/360), [377](../../issues/377), [396](../../issues/396)) * `os.stat` ([376](../../issues/376)) * `os.path.isfile` ([374](../../issues/374)) * `os.path.getsize` ([368](../../issues/368)) * `os.lstat` ([366](../../issues/366)) * `os.path.exists` ([364](../../issues/364)) * `os.readlink` ([359](../../issues/359), [372](../../issues/372), [392](../../issues/392)) ``` ### 3.4.1 ``` This is a bug fix only release. Fixes * Missing cleanup after using dynamic patcher let to incorrect behavior of `tempfile` after test execution (regression, see [356](../../issues/356)) * `add_real_directory` does not work after `chdir` (see [355](../../issues/355)) ``` ### 3.4 ``` This version of pyfakefs does not support Python 2.6. Python 2.6 users must use pyfakefs 3.3 or earlier. New Features * Added possibility to map real files or directories to another path in the fake file system (see [347](../../issues/347)) * Configuration of `Patcher` and `TestCase`: * Possibility to reload modules is now also available in `Patcher` * Added possibility to add own fake modules via `modules_to_patch` argument (see [345](../../issues/345)) * Dynamic loading of modules after setup is now on by default and no more considered experimental (see [340](../../issues/340)) * Added support for file descriptor path parameter in `os.scandir` (Python >= 3.7, Posix only) (see [346](../../issues/346)) * Added support to fake out backported `scandir` module ([332](../../issues/332)) * `IOError`/`OSError` exception messages in the fake file system now always start with the message issued in the real file system in Unix systems (see [202](../../issues/202)) Infrastructure * Changed API to be PEP-8 conform ([186](../../issues/186)). Note: The old API is still available. * Removed Python 2.6 support ([293](../../issues/293)) * Added usage documentation to GitHub Pages * Added contributing guide * Added flake8 tests to Travis CI Fixes * Links in base path in `os.scandir` shall not be resolved ([350](../../issues/350)) * Fixed unit tests when run on a computer not having umask set to 0022 * Correctly handle newline parameter in `open()` for Python 3, added support for universal newline mode in Python 2 ([339](../../issues/339)) * Fixed handling of case-changing rename with symlink under MacOS ([322](../../issues/322)) * Creating a file with a path ending with path separator did not raise ([320](../../issues/320)) * Fixed more problems related to `flush` ([302](../../issues/302), [300](../../issues/300)) * Correctly handle opening files more than once ([343](../../issues/343)) * Fake `os.lstat()` crashed with several trailing path separators ([342](../../issues/342)) * Fixed handling of path components starting with a drive letter([337](../../issues/337)) * Symlinks to absolute paths were incorrectly resolved under Windows ([341](../../issues/341)) * Unittest mock didn't work after setUpPyfakefs ([334](../../issues/334)) * `os.path.split()` and `os.path.dirname()` gave incorrect results under Windows ([335](../../issues/335)) ```
Links - PyPI: https://pypi.org/project/pyfakefs - Changelog: https://pyup.io/changelogs/pyfakefs/ - Homepage: http://pyfakefs.org
codecov[bot] commented 6 years ago

Codecov Report

Merging #101 into develop will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #101   +/-   ##
========================================
  Coverage    95.18%   95.18%           
========================================
  Files           19       19           
  Lines         1267     1267           
========================================
  Hits          1206     1206           
  Misses          61       61

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 601f730...65dcf8d. Read the comment docs.