remove superflous building of a dict, preserve order for nodes that have identical file:lineno
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user