remove superflous building of a dict, preserve order for nodes that have identical file:lineno

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-01-15 17:38:09 +01:00
parent 1ff37207a2
commit ee2f292efa
2 changed files with 5 additions and 10 deletions

View File

@@ -333,7 +333,7 @@ class TestConftestCustomization:
l = []
monkeypatch.setattr(py.test.collect.Module, 'makeitem',
lambda self, name, obj: l.append(name))
modcol._buildname2items()
l = modcol.collect()
assert '_hello' not in l