blob: d6a8b714d5942d040afe1610beb7607b1f34922f [file] [log] [blame]
import py
import pytest
from pyfakefs.fake_filesystem_unittest import Patcher
Patcher.SKIPMODULES.add(py) # Ignore pytest components when faking filesystem
@pytest.yield_fixture
def fs():
""" Fake filesystem. """
patcher = Patcher()
patcher.setUp()
yield
patcher.tearDown()