fix bug introduced with last checkin

This commit is contained in:
holger krekel 2012-09-18 13:46:24 +02:00
parent a7c6688bd6
commit a5e7e441d3
1 changed files with 2 additions and 1 deletions

View File

@ -1469,7 +1469,8 @@ class SetupCall:
self.funcargmanager = funcargmanager
self.baseid = baseid
self.func = func
self.funcargnames = getfuncargnames(func, startindex=int(unittest))
startindex = unittest and 1 or None
self.funcargnames = getfuncargnames(func, startindex=startindex)
self.scope = scope
self.scopenum = scopes.index(scope)
self.active = False