fix autouse invocation (off-by-one error), relates to issue in moinmoin test suite

This commit is contained in:
holger krekel
2012-11-19 22:17:55 +01:00
parent f3e03fc298
commit d66ff7e63e
5 changed files with 24 additions and 3 deletions

View File

@@ -1455,7 +1455,7 @@ class FixtureManager:
for baseid, basenames in self._nodeid_and_autousenames:
if nodeid.startswith(baseid):
if baseid:
i = len(baseid) + 1
i = len(baseid)
nextchar = nodeid[i:i+1]
if nextchar and nextchar not in ":/":
continue