aboutsummaryrefslogtreecommitdiff
path: root/pyfakefs/pytest_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyfakefs/pytest_plugin.py')
-rw-r--r--pyfakefs/pytest_plugin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyfakefs/pytest_plugin.py b/pyfakefs/pytest_plugin.py
index 0ecdd0e..fed7a55 100644
--- a/pyfakefs/pytest_plugin.py
+++ b/pyfakefs/pytest_plugin.py
@@ -10,6 +10,7 @@ def my_fakefs_test(fs):
"""
import py
import pytest
+from _pytest import capture
from pyfakefs.fake_filesystem_unittest import Patcher
@@ -20,6 +21,7 @@ except ImportError:
Patcher.SKIPMODULES.add(py)
Patcher.SKIPMODULES.add(pytest)
+Patcher.SKIPMODULES.add(capture)
if pathlib is not None:
Patcher.SKIPMODULES.add(pathlib)