remove duplicate code, normalize relative path names to fix windows running tests

This commit is contained in:
holger krekel
2010-11-07 12:05:32 +01:00
parent 6461295ab4
commit fefac66079
3 changed files with 13 additions and 31 deletions

View File

@@ -354,6 +354,7 @@ class Generator(FunctionMixin, PyCollectorMixin, pytest.collect.Collector):
# invoke setup/teardown on popular request
# (induced by the common "test_*" naming shared with normal tests)
self.config._setupstate.prepare(self)
l = []
seen = {}
for i, x in enumerate(self.obj()):