Skip to content

Commit

Permalink
pytester: do not use outer plugins
Browse files Browse the repository at this point in the history
Sets PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 by default.

Fixes pytest-dev#4351.
  • Loading branch information
blueyed committed Dec 9, 2018
1 parent 818aa4d commit 213e1d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/_pytest/pytester.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ def __init__(self, request, tmpdir_factory):
self.test_tmproot = tmpdir_factory.mktemp("tmp-" + name, numbered=True)
os.environ["PYTEST_DEBUG_TEMPROOT"] = str(self.test_tmproot)
os.environ.pop("TOX_ENV_DIR", None) # Ensure that it is not used for caching.
os.environ.setdefault("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
self.plugins = []
self._cwd_snapshot = CwdSnapshot()
self._sys_path_snapshot = SysPathsSnapshot()
Expand Down

0 comments on commit 213e1d9

Please sign in to comment.