Permalink
Commits on Oct 11, 2018
  1. Fix pytest when pyfakefs + future is installed

    asottile authored and mrbean-bremen committed Oct 10, 2018
    `python-future` is notorious for breaking modules which use `try:` / `except:`
    to import modules based on version.  In this case, `pyfakefs` imported the
    backported `builtins` module which changes the semantics of the `open()`
    function.  `pyfakefs` then monkeypatches `linecache` which breaks any module
    which attempts to use `linecache` (in this case `pytest`).
    
    The downstream issue is pytest-dev/pytest#4074