[svn r62611] yay, the global setupstate died. I guess what kept me from doing that

was all kinds of tests breaking.  but they are cleaned up now.
so there was no problem. nice.

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-05 22:10:18 +01:00
parent 62b36a91a0
commit 65b75cead6
6 changed files with 47 additions and 57 deletions

View File

@@ -289,7 +289,7 @@ class Generator(FunctionMixin, PyCollectorMixin, py.test.collect.Collector):
# test generators are collectors yet participate in
# the test-item setup and teardown protocol.
# otherwise we could avoid global setupstate
self._setupstate.prepare(self)
self._config._setupstate.prepare(self)
l = []
for i, x in py.builtin.enumerate(self.obj()):
name, call, args = self.getcallargs(x)