diff --git a/_pytest/pytester.py b/_pytest/pytester.py index cc25bf1c0..cfd9ea358 100644 --- a/_pytest/pytester.py +++ b/_pytest/pytester.py @@ -390,6 +390,8 @@ class TmpTestdir: c.basetemp = py.path.local.make_numbered_dir(prefix="reparse", keep=0, rootdir=self.tmpdir, lock_timeout=None) c.parse(args) + c.pluginmanager.do_configure(c) + self.request.addfinalizer(lambda: c.pluginmanager.do_unconfigure(c)) return c finally: py.test.config = oldconfig