call configure hooks in reparseconfig

This commit is contained in:
Benjamin Peterson 2011-05-26 18:11:12 -05:00
parent 7cf8afef47
commit 96521ada68
1 changed files with 2 additions and 0 deletions

View File

@ -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